2018-03-29 14:48:46 +00:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
language:
|
|
|
|
- cpp
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- gcc-6
|
|
|
|
- g++-6
|
|
|
|
- cmake
|
2018-10-20 18:02:11 +00:00
|
|
|
- lcov
|
2018-03-29 14:57:57 +00:00
|
|
|
script:
|
2018-03-29 14:48:46 +00:00
|
|
|
# Export CC and CXX to tell cmake which compiler to use
|
|
|
|
- export CC=/usr/bin/gcc-6
|
|
|
|
- export CXX=/usr/bin/g++-6
|
|
|
|
|
|
|
|
# Check versions of gcc, g++ and cmake
|
2018-03-29 14:57:57 +00:00
|
|
|
- gcc-6 -v && g++-6 -v && cmake --version
|
2018-03-29 14:48:46 +00:00
|
|
|
|
2018-10-20 18:32:21 +00:00
|
|
|
# Configure coveralls
|
|
|
|
- export COVERALLS_SERVICE_NAME=travis-ci
|
|
|
|
- export COVERALLS_REPO_TOKEN=AVdmBeqZ1of0v2ST0FfKy7cOFYeildj6C
|
|
|
|
|
2018-03-29 14:48:46 +00:00
|
|
|
# Build
|
|
|
|
- rm -rf build/
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2018-10-20 18:02:11 +00:00
|
|
|
- cmake -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug ..
|
2018-03-29 14:48:46 +00:00
|
|
|
- make
|
|
|
|
|
|
|
|
# Testing
|
2018-03-29 22:20:30 +00:00
|
|
|
- make test CTEST_OUTPUT_ON_FAILURE=TRUE
|
2018-10-20 18:02:11 +00:00
|
|
|
|
|
|
|
# Coverage
|
|
|
|
- make coveralls
|