language: cpp os: - linux #- osx dist: trusty sudo: required compiler: #- clang - gcc env: #- CONFIG=Release - CONFIG=Debug notifications: email: on_success: change on_failure: always install: - git clone https://github.com/HowardHinnant/date - cd date - git checkout tags/v1.0.0 - cd .. - g++ --version - cmake --version - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo add-apt-repository -y ppa:george-edison55/cmake-3.x && sudo apt-get update && sudo apt-cache madison cmake && sudo apt-get install cmake -y ; fi before_script: - mkdir build - cd build - if [[ "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then cp -r ../scripts/ . && cp -r ../test_scripts/ . && sudo apt-get install python-pyparsing; fi - if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi - cmake .. -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_PREFIX_PATH=$PWD/../date script: - cmake --build . --config $CONFIG - ctest --output-on-failure after_script: - ../coveralls