-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
42 lines (41 loc) · 1022 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
34
35
36
37
38
39
40
41
42
language: cpp
os: linux
dist: trusty
compiler:
- g++
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
before_install:
# - sudo apt-get -qq update
# - sudo apt-get install -y libgtest-dev
- cd "${TRAVIS_BUILD_DIR}"
before_script:
- cd test/cpp
- pushd gtest && ./build.sh && popd
- mkdir -p build && cd build
- cmake ../
- make
script: "./DSA-Leet-CXX"
after_success:
# Creating report
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
- lcov --list coverage.info #debug info
# Uploading report to CodeCov
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
branches:
only:
- master
notifications:
recipients:
email:
on_success: never
on_failure: change
rvm:
- 9.00