gtsam/.travis.yml

103 lines
2.6 KiB
YAML
Raw Normal View History

2019-05-31 15:48:51 +08:00
language: cpp
cache: ccache
sudo: required
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- clang-3.8
- build-essential
- pkg-config
- cmake
- libpython-dev python-numpy
- libboost-all-dev
# before_install:
# - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
2019-05-31 15:48:51 +08:00
install:
2019-06-03 11:58:46 +08:00
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi
2019-05-31 15:48:51 +08:00
script:
- bash .travis.sh
2019-06-07 05:46:27 +08:00
# We first do the compile stage specified below, then the matrix expansion specified after.
stages:
- compile
- test
2019-05-31 15:48:51 +08:00
2019-06-07 05:46:27 +08:00
# Compile stage without building examples/tests to populate the caches.
jobs:
2019-05-31 15:48:51 +08:00
include:
2019-06-07 06:25:55 +08:00
# on Mac, GCC
- stage: compile
os: osx
compiler: gcc
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
- stage: compile
os: osx
compiler: gcc
env: CMAKE_BUILD_TYPE=Release GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
2019-06-07 06:25:55 +08:00
# on Mac, CLANG
- stage: compile
os: osx
compiler: clang
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
- stage: compile
os: osx
compiler: clang
env: CMAKE_BUILD_TYPE=Release GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
2019-06-07 05:46:27 +08:00
# on Linux, GCC
- stage: compile
2019-06-02 23:02:37 +08:00
os: linux
2019-06-07 05:46:27 +08:00
compiler: gcc
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
- stage: compile
os: linux
compiler: gcc
env: CMAKE_BUILD_TYPE=Release GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
2019-06-07 05:46:27 +08:00
# on Linux, CLANG
- stage: compile
2019-06-02 23:02:37 +08:00
os: linux
2019-06-07 05:46:27 +08:00
compiler: clang
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
- stage: compile
os: linux
compiler: clang
env: CMAKE_BUILD_TYPE=Release GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
2019-06-07 05:46:27 +08:00
# on Linux, with deprecated ON to make sure that path still compiles
- stage: compile
os: linux
2019-06-07 05:46:27 +08:00
compiler: clang
2019-06-11 01:25:30 +08:00
env: GTSAM_ALLOW_DEPRECATED_SINCE_V4=ON GTSAM_BUILD_TESTS=OFF GTSAM_BUILD_EXAMPLES_ALWAYS=ON
2019-06-07 05:46:27 +08:00
# Matrix configuration:
os:
2019-06-07 06:22:37 +08:00
- osx
2019-06-07 06:25:55 +08:00
- linux
2019-06-07 05:46:27 +08:00
compiler:
- gcc
- clang
env:
global:
- MAKEFLAGS="-j2"
2019-06-07 05:46:27 +08:00
- CCACHE_SLOPPINESS=pch_defines,time_macros
2019-06-09 23:14:31 +08:00
- GTSAM_BUILD_UNSTABLE=ON
- GTSAM_ALLOW_DEPRECATED_SINCE_V4=OFF
2019-06-11 01:25:30 +08:00
- GTSAM_BUILD_EXAMPLES_ALWAYS=OFF
- GTSAM_BUILD_TESTS=ON
2019-06-07 05:46:27 +08:00
matrix:
2019-06-11 01:25:30 +08:00
- CMAKE_BUILD_TYPE=Debug
- CMAKE_BUILD_TYPE=Release
2019-06-07 05:46:27 +08:00
# Uncomment this if you want to exclude clang on linux
# matrix:
# exclude:
# - os: linux
# compiler: clang