SQLiteCpp/.travis.yml
Sébastien Rombauts 50501a41e2 Fix test coverage by using gcov '-lp' options
NOTE: it would be good to also be able to keep unused inline functions,
 but there is a problem between gcc 4.8 and -fkeep-inline-functions
2016-06-21 12:20:23 +02:00

36 lines
902 B
YAML

# Copyright (c) 2012-2016 Sebastien Rombauts (sebastien.rombauts@gmail.com)
language: cpp
# compilers to add to build matrix
compiler:
- gcc
- clang
# request for Ubuntu 14.04 Trusty VM
sudo: true
dist: trusty
addons:
apt:
packages:
- cppcheck
before_install:
- if [[ "$CXX" == "g++" ]]; then pip install --user cpp-coveralls ; fi
# scripts to run before build
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DSQLITECPP_USE_GCOV=ON -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON ..
# build examples, and run tests (ie make & make test)
script:
- cmake --build .
- ctest --verbose --output-on-failure
# generate and publish GCov coveralls results
after_success:
- if [[ "$CXX" == "g++" ]]; then coveralls --root .. -e examples -e googletest -e sqlite3 -e tests -E ".*feature_tests.*" -E ".*CompilerId.*" --gcov-options '\-lp' ; fi