mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-27 12:21:02 +08:00
38 lines
938 B
YAML
38 lines
938 B
YAML
os: linux
|
|
dist: trusty
|
|
sudo: require
|
|
language: cpp
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- llvm-toolchain-precise-3.9
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- clang-3.9
|
|
- gcc-6
|
|
- g++-6
|
|
|
|
matrix:
|
|
include:
|
|
- compiler: gcc
|
|
env: COMPILER=g++-6
|
|
|
|
- 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
|
|
|
|
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
|