2017-08-15 20:35:56 +02:00
|
|
|
dist: trusty
|
|
|
|
sudo: require
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- llvm-toolchain-precise
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- clang-3.7
|
2017-08-15 21:14:33 +02:00
|
|
|
- gcc-6
|
|
|
|
- g++-6
|
|
|
|
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
2017-08-15 20:35:56 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
|
|
|
|
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
|
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir build-debug && cd build-debug && cmake -DCMAKE_BUILD_TYPE=Debug .. && cmake --build .
|
|
|
|
- ./test/EventBusTest # Run tests
|
|
|
|
- cd .. # exit from build-debug
|
|
|
|
- mkdir build-release && cd build-release && cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
|
|
|
|
- ./test/EventBusTest # Run tests
|