Try to distill travis / coverity settings

This commit is contained in:
Jason Turner 2015-05-30 06:32:14 -06:00
parent cfc67f619a
commit 70326a5dff

View File

@ -18,15 +18,15 @@ before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update - sudo apt-get update
- sudo apt-get install -qq g++-4.8 - sudo apt-get install -qq g++-4.8
- if [ "$GCC_VER" = "4.8" ]; then export CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8"; else export GCOV="gcov"; fi - if [ "$GCC_VER" = "4.8" ]; then export CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8" COVERALLS="1" CPPCHECK="1"; else export GCOV="gcov"; fi
script: script:
- cat cov-int/build-log.txt - if [ ${COVERITY_SCAN_BRANCH} = 1 ]; then cat cov-int/build-log.txt; fi
- cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug . - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then cmake -D ENABLE_COVERAGE:BOOL=TRUE -D CMAKE_BUILD_TYPE:STRING=Debug . ; fi
- make -j2 - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make -j2 ; fi
- make test - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make test ; fi
- coveralls -e "unittests/catch.hpp" -E ".*\.cpp" --gcov $GCOV - if [ ${COVERITY_SCAN_BRANCH} != 1 && ${COVERALLS} = 1 ]; then coveralls -e "unittests/catch.hpp" -E ".*\.cpp" --gcov $GCOV ; fi
after_script: after_script:
- contrib/codeanalysis/runcppcheck.sh - if [ ${COVERITY_SCAN_BRANCH} != 1 && ${COVERALLS} = 1 ]; then contrib/codeanalysis/runcppcheck.sh ; fi
notifications: notifications:
email: email:
recipients: recipients:
@ -47,7 +47,7 @@ addons:
description: "Build submitted via Travis CI" description: "Build submitted via Travis CI"
notification_email: jason@emptycrate.com notification_email: jason@emptycrate.com
build_command_prepend: "cmake ." build_command_prepend: "cmake ."
build_command: "cmake --build ." build_command: "cmake --build . --target chai"
branch_pattern: coverity_scan branch_pattern: coverity_scan