forked from b9org/b9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 799 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: C++
sudo: false
git:
depth: 1
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
os:
- linux
cache:
ccache: true
directories:
- node_modules
install:
- npm install
- pip install --user cpp-coveralls
before_script:
- export CXX="g++-5"
- export CC="gcc-5"
- export GCOV="gcov-5"
script:
- mkdir build && cd build
- cmake -DB9_GCOV=ON ..
- make -j4 || echo "*BUILD_FAILURE*" && make -j1 VERBOSE=1
- ctest --output-on-failure
- cd "${TRAVIS_BUILD_DIR}"
after_script:
- echo "Uploading code coverage report"
- coveralls --exclude third_party --exclude build/third_party --exclude build/CMakeFiles --gcov $(which $GCOV) --gcov-options '\-lp' --build-root build > /dev/null
- bash <(curl -s https://codecov.io/bash)