forked from homksei/devtools-course-practice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 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
43
44
45
46
47
48
49
notifications:
email: false
language: cpp
sudo: required
dist: trusty
addons:
apt:
packages:
- valgrind
- cppcheck
env:
global:
- CTEST_EXT_COLOR_OUTPUT=TRUE
- CTEST_BUILD_FLAGS=-j4
- CTEST_WITH_SUBMIT=TRUE
matrix:
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 on codecov.io
- if [ "${CTEST_MODEL}" == "Coverage" ]; then
$HOME/codecov -p dashboard/build;
fi