-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
88 lines (78 loc) · 1.99 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
sudo: false
dist: trusty
branches:
except:
- appveyor
language: cpp
os: linux
compiler:
- gcc
- clang
env:
matrix:
- CONFIG=Debug
- CONFIG=Release
addons:
apt:
packages:
- libboost-all-dev
jobs:
include:
- stage: lint
compiler: clang
env: CONFIG=Lint CLANG_VERSION=6.0
addons:
apt:
packages:
- clang-format-6.0
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0
install:
- git clone https://github.com/Sarcasm/run-clang-format
script:
- .travis/lint.sh
- stage: test
os: osx
compiler: clang
env: CONFIG=Release
- stage: test
compiler: gcc
env: CONFIG=Coverage
addons:
apt:
packages:
- libboost-all-dev
- lcov
install:
- pip install --user codecov
script:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DNIT_WITH_COVERAGE=ON
- make -j 2
- make test
- cd ..
- .travis/submit_codecov.sh
- stage: test
compiler: gcc
env: CONFIG=Memcheck
addons:
apt:
packages:
- libboost-all-dev
- valgrind
script:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug
- make -j 2
- find bin/ -name '*_tests' | xargs -n 1 valgrind --tool=memcheck --leak-check=full --show-leak-kinds=definite --errors-for-leak-kinds=definite
stages:
- lint
- test
before_script:
- mkdir build
script:
- cd build
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE="${CONFIG}" ..
- make -j 2
- ctest --verbose