mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-09-08 20:17:39 -04:00

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
36 lines
902 B
YAML
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
|