2014-08-24 09:34:01 +02:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
2016-12-25 14:32:47 +01:00
|
|
|
- osx
|
2014-08-24 09:34:01 +02:00
|
|
|
|
2016-12-25 14:16:38 +01:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
|
2014-08-24 09:34:01 +02:00
|
|
|
compiler:
|
2016-12-25 14:32:47 +01:00
|
|
|
- clang
|
2014-08-24 09:34:01 +02:00
|
|
|
- gcc
|
|
|
|
|
2015-05-29 17:52:34 +02:00
|
|
|
env:
|
2016-12-25 14:32:47 +01:00
|
|
|
- CONFIG=Release
|
|
|
|
#- CONFIG=Debug
|
2015-05-29 17:52:34 +02:00
|
|
|
|
2014-08-24 09:34:01 +02:00
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
|
|
|
|
install:
|
2016-12-25 14:32:47 +01:00
|
|
|
- g++ --version
|
|
|
|
- cmake --version
|
2015-10-29 18:51:28 +01:00
|
|
|
- git clone https://github.com/HowardHinnant/date
|
2016-04-14 16:41:17 +02:00
|
|
|
- cd date
|
2018-01-31 17:55:02 +03:00
|
|
|
- git checkout tags/v2.4
|
2016-04-14 16:41:17 +02:00
|
|
|
- cd ..
|
2014-08-24 09:34:01 +02:00
|
|
|
|
2015-05-29 17:52:34 +02:00
|
|
|
before_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2016-06-12 21:03:09 +03:00
|
|
|
- if [[ "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then
|
|
|
|
cp -r ../scripts/ . &&
|
|
|
|
cp -r ../test_scripts/ . &&
|
|
|
|
sudo apt-get install python-pyparsing;
|
|
|
|
fi
|
2015-09-13 23:33:16 +02:00
|
|
|
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
|
2016-05-05 10:15:26 +02:00
|
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date
|
2014-08-24 09:34:01 +02:00
|
|
|
|
2015-05-29 17:52:34 +02:00
|
|
|
script:
|
|
|
|
- cmake --build . --config $CONFIG
|
|
|
|
- ctest --output-on-failure
|
2015-05-29 23:16:50 +02:00
|
|
|
|
|
|
|
after_script:
|
|
|
|
- ../coveralls
|