EventBus/.travis.yml

52 lines
1.5 KiB
YAML
Raw Normal View History

2017-08-15 20:35:56 +02:00
dist: trusty
sudo: require
language: cpp
2018-07-30 15:11:21 +02:00
osx_image: xcode9.4
os:
- linux
- osx
compiler:
- gcc
- clang
2017-08-15 20:35:56 +02:00
addons:
apt:
sources:
2017-08-15 21:26:23 +02:00
- llvm-toolchain-precise-3.9
- ubuntu-toolchain-r-test
2017-08-15 20:35:56 +02:00
packages:
2017-08-15 21:26:23 +02:00
- clang-3.9
- gcc-6
- g++-6
2018-07-30 15:11:21 +02:00
- cmake
2017-08-15 21:14:33 +02:00
2017-08-15 21:26:23 +02:00
matrix:
2018-07-30 15:11:21 +02:00
exclude: # On OSX g++ is a symlink to clang++ by default
- os: osx
compiler: gcc
2017-08-15 21:26:23 +02:00
include:
- compiler: gcc
env: COMPILER=g++-6
2017-08-15 20:35:56 +02:00
2017-08-15 21:26:23 +02:00
- compiler: clang
env: COMPILER=clang++-3.9
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update; fi
before_script:
2018-07-30 15:11:21 +02:00
- if [ "$COMPILER" = "g++-6" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="g++-6" CC="gcc-6"; fi
- if [ "$COMPILER" = "clang++-3.9" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-3.9" CC="clang-3.9"; fi
2017-08-15 20:35:56 +02:00
script:
2018-07-30 15:11:21 +02:00
#Build & Install library
- (mkdir -p lib/build-debug/ && cd lib/build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~/.local/ .. && cmake --build . --target install)
- (mkdir -p lib/build-release/ && cd lib/build-release && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local/ .. && cmake --build . --target install)
# Run tests
- (mkdir -p test/build-debug/ && cd test/build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=~/.local/ .. && cmake --build . && ctest -V .)
- (mkdir -p test/build-release/ && cd test/build-release && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/.local/ .. && cmake --build . && ctest -V .)