forked from Banwok/devtools-course-practice-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1011 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
43
44
45
46
47
notifications:
email: false
language: cpp
dist: trusty
addons:
apt:
packages:
- valgrind
- cppcheck
env:
global:
- CTEST_EXT_COLOR_OUTPUT=TRUE
- CTEST_BUILD_FLAGS=-j4
- CTEST_WITH_SUBMIT=FALSE
jobs:
include:
- os: linux
compiler: gcc
env: CTEST_TARGET_SYSTEM=Linux-gcc CTEST_MODEL=Coverage
- os: linux
compiler: gcc
env: CTEST_TARGET_SYSTEM=Linux-gcc CTEST_MODEL=MemCheck
- os: linux
compiler: gcc
env: CTEST_TARGET_SYSTEM=Linux-gcc CTEST_MODEL=CodeCheck
# - os: osx
# compiler: clang
# env: CTEST_TARGET_SYSTEM=MacOS-clang CTEST_MODEL=Experimental
install:
- if [ "${CTEST_MODEL}" == "Coverage" ]; then
wget https://codecov.io/bash -O $HOME/codecov;
chmod +x $HOME/codecov;
fi
script:
- ctest -VV -S devtools_test.cmake
after_success:
# Push coverage info to codecov.io
- if [ "${CTEST_MODEL}" == "Coverage" ]; then
$HOME/codecov -p dashboard/build;
fi