From febb0e01107839df2f1a46679d22181ee4d1ddcb Mon Sep 17 00:00:00 2001 From: Dave Larson Date: Fri, 18 Dec 2015 16:35:57 -0600 Subject: [PATCH] add travis config from diagnose_dups --- .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..39acf29 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,44 @@ +language: cpp + +os: + - linux + - osx + +compiler: + - gcc + - clang + +notifications: + email: + on_failure: always + on_success: change + +sudo: false + +matrix: + exclude: + - os: osx + compiler: gcc + +addons: + apt: + packages: + - cmake + +before_install: + - export PATH=$HOME/.local/bin:$PATH + - pip install cpp-coveralls --user `whoami` + +before_script: + - cd $TRAVIS_BUILD_DIR + - mkdir build + - cd build + - cmake .. -DCMAKE_BUILD_TYPE=coverage + - make VERBOSE=1 + +script: + - ctest -V + +after_success: + # as described at: https://github.com/eddyxu/cpp-coveralls + - coveralls -E '.*test.*' -E '.*vendor.*' -E '/usr.*' -E '.*CMake.*' --gcov-options '\-lp' -r ..