benchmark/.travis.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2014-11-12 09:46:23 +00:00
matrix:
include:
- os: linux
env: BUILD_TYPE=Debug STD=c++0x
2014-11-12 09:46:23 +00:00
- os: linux
env: BUILD_TYPE=Debug STD=c++11
2014-11-12 09:46:23 +00:00
- os: linux
env: BUILD_TYPE=Release STD=c++0x
2014-11-12 09:46:23 +00:00
- os: linux
env: BUILD_TYPE=Release STD=c++11
2014-11-12 09:46:23 +00:00
- os: osx
env: BUILD_TYPE=Debug STD=c++11
2014-11-12 09:46:23 +00:00
- os: osx
env: BUILD_TYPE=Release STD=c++11
2014-11-12 09:32:00 +00:00
2015-03-09 18:34:32 +00:00
env:
- CTEST_OUTPUT_ON_FAILURE=1
2014-11-12 09:32:00 +00:00
language:
- cpp
2014-11-12 09:46:23 +00:00
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo apt-get update -qq; fi
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo apt-get install -qq gcc-4.8 g++-4.8; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$STD" = "c++11" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90; fi
2014-11-12 09:32:00 +00:00
before_script:
- mkdir build && cd build
script:
2014-11-12 09:46:23 +00:00
- cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="-std=${STD}"
2014-11-12 09:32:00 +00:00
- make
- make test