gtsam/.travis.yml

114 lines
2.7 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-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_UNSTABLE=OFF
script: bash .travis.sh -b
- stage: compile
os: osx
compiler: gcc
env: CMAKE_BUILD_TYPE=Release
script: bash .travis.sh -b
2019-06-07 06:25:55 +08:00
# on Mac, CLANG
- stage: compile
os: osx
compiler: clang
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_UNSTABLE=OFF
script: bash .travis.sh -b
- stage: compile
os: osx
compiler: clang
env: CMAKE_BUILD_TYPE=Release
script: bash .travis.sh -b
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_UNSTABLE=OFF
script: bash .travis.sh -b
- stage: compile
os: linux
compiler: gcc
env: CMAKE_BUILD_TYPE=Release
script: bash .travis.sh -b
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_UNSTABLE=OFF
script: bash .travis.sh -b
- stage: compile
os: linux
compiler: clang
env: CMAKE_BUILD_TYPE=Release
script: bash .travis.sh -b
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
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_UNSTABLE=OFF GTSAM_ALLOW_DEPRECATED_SINCE_V4=ON
script: bash .travis.sh -b
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_ALLOW_DEPRECATED_SINCE_V4=OFF
- GTSAM_BUILD_UNSTABLE=ON
2019-06-07 05:46:27 +08:00
matrix:
- CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_UNSTABLE=OFF
- CMAKE_BUILD_TYPE=Release
script:
- bash .travis.sh -t
2019-06-07 05:46:27 +08:00
2019-06-12 19:10:28 +08:00
matrix:
exclude:
# Exclude g++ debug on Linux as it consistently times out
- os: linux
compiler: gcc
env : CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_UNSTABLE=OFF
# Exclude clang on Linux/clang in release until issue #57 is solved
- os: linux
compiler: clang
env : CMAKE_BUILD_TYPE=Release