2017-08-15 21:48:15 +02:00
|
|
|
os: linux
|
2017-08-15 20:35:56 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: require
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
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
|
2017-08-15 21:14:33 +02:00
|
|
|
|
2017-08-15 21:26:23 +02:00
|
|
|
matrix:
|
|
|
|
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:
|
|
|
|
- if [ "$COMPILER" = "g++-6" ]; then export CXX="g++-6" CC="gcc-6"; fi
|
|
|
|
- if [ "$COMPILER" = "clang++-3.9" ]; then export CXX="clang++-3.9" CC="clang-3.9"; fi
|
2017-08-15 20:35:56 +02:00
|
|
|
|
|
|
|
script:
|
2017-11-24 13:29:34 +01:00
|
|
|
- mkdir build-debug && cd build-debug && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=YES .. && cmake --build .
|
2017-08-15 20:35:56 +02:00
|
|
|
- ./test/EventBusTest # Run tests
|
|
|
|
- cd .. # exit from build-debug
|
2017-11-24 13:29:34 +01:00
|
|
|
- mkdir build-release && cd build-release && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=YES .. && cmake --build .
|
2017-08-15 20:35:56 +02:00
|
|
|
- ./test/EventBusTest # Run tests
|