This repository has been archived by the owner on Jul 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
185 lines (165 loc) · 5.08 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
#########################
# project configuration #
#########################
# C++ project
language: cpp
dist: trusty
sudo: required
###################
# global settings #
###################
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "VXnpjzjITfs9Siou+m+gi6sJeQTL5YrueweJyTTTsaBpkIfvtK1wwND0VHsnjIZPhcylcgmwoiAWjdxTkY1nHJLiaRliRf7wnPlPK6eqPgHa6dYJH5RHJUlf/sJeBKBIQLaVmXZPWIRisIZneKYhSALmzGiVmtXfL3Q3e2nPIDdp3qaa13Hvu+GHfzpdR4agT9BoIKaqk6PoDHCvhGrMjVRd5zhl9EsXe4adLwYBihAKoHobCveWUZWLW8m35PQpmjiHydaE3vTbzoTZg1XW6SjVRFIOGBz8D94MlAX4VjbqVRKLBl7OF+/1VT++XLBRh927aJVLv0Z37PlNUTI5cTE/1ZVGq6DMrc01aQrtcEc2mpMZ0C9MgMmcS0cpfDzSviEEASyRv9GD1ePe7129auF6vm/ZQ2k35q0tUbjHqizWJZfw2vLp1YaRfikf4C35tsj3+RZPWoap7TAyYsyO5c2qMmRGfEdFHBfex0UW5269VTEbkU4aKSbpIXo1WSplClTCYUOhehtncK0rkPjudRzA/0aUVzne/JpZEPKiT8j1EWfOXwaQLhM22e+C/bsVQZDUrfN1/xd2RS2kjVZ5C1xI96nvYIrJ3nsx/A2PUS0hYY/02Hcy56Sd29uN15QdJAoTzO/sbI1PFeYFc2pfJUQ5Kxr6PBLeqvk+rpmbTKY="
##################
# Before install #
##################
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq libeigen3-dev
################
# build matrix #
################
matrix:
include:
# GCC 4.9
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=g++-4.9
# Clang GCC 5
- compiler: gcc
env: COMPILER=g++-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
# Clang 3.6
- compiler: clang
env: COMPILER=clang++-3.6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.6
packages:
- clang-3.6
# Clang 3.7
- compiler: clang
env: COMPILER=clang++-3.7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.7
packages:
- clang-3.7
# Coverity scan
- compiler: gcc
env:
- COMPILER=g++-5
- SPECIAL=coverity
before_install: echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5', 'valgrind', 'libeigen3-dev']
coverity_scan:
project:
name: "cb-geo/felib"
description: "LBM-DEM Coverity scan build submitted via Travis CI"
notification_email: [email protected]
build_command_prepend: "cmake ."
build_command: "make"
branch_pattern: coverity_scan
# Codecov
- compiler: gcc
env:
- COMPILER=g++-5
- SPECIAL=codecoverage
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5', 'ruby']
before_script:
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
after_success:
- rm -rf ./* && cmake .. -DENABLE_COVERAGE=On
- make clean && make
- ./felib
- ./felibtest
- make gcov
- make lcov
- bash <(curl -s https://codecov.io/bash) -X gcov
# Valgrind and cppcheck
- compiler: gcc
env:
- COMPILER=g++-5
- SPECIAL=valgrind
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-5', 'cppcheck', 'valgrind']
after_success:
- valgrind --error-exitcode=1 --leak-check=full ./felib
- valgrind --error-exitcode=1 --leak-check=full ./felibtest
- cd .. && cppcheck --enable=warning --inconclusive --force --std=c++11 src/*.cc include/*.h include/*.tcc --error-exitcode=1
# Clang static analysis
- os: linux
compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-3.7
packages:
- clang
- clang-3.7
env:
- COMPILER=clang++-3.7
- CONFIG=scan-build
- ASAN="ON"
- MSAN="ON"
- TSAN="ON"
- UBSAN="ON"
- STATIC_ANALYZER="ON"
- CLANG_FORMAT="ON"
- CLANG_TIDY="ON"
after_success:
- scan-build cmake ..
- scan-build make
# OSX / Clang
- os: osx
osx_image: xcode7.3
before_install:
- brew update
- brew install eigen
- os: osx
osx_image: xcode8
before_install:
- brew update
- brew install eigen
################
# build script #
################
script:
- mkdir build
- cd build
- cmake ..
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make ; fi
- ctest -VV -S
notifications:
slack:
rooms:
- cb-geo:0N3fJy823MGsJvcDB91m4p8H#felib