forked from open62541/open62541
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
282 lines (269 loc) · 7.5 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# using c for language overwrites our compilers
language: generic
sudo: required
env:
global:
# GITAUTH:
- secure: nSunY54Wp5HkQCHHbKwlwpbaKyqRVIu/0EnhaoJSwhM1wqerQV/E5d/2JelO9/tZgbungAO7wk/fjutRMVc7d378RTIPwS8vHpvZfEoGhCFsLoTOlqESzsZFBup2H5t1lpQ23jRHDOxlLdJy2lz5U+zd1YnYgDXqdDFjegsIYdo=
# COVERITY_SCAN_TOKEN:
- secure: C7LLWmOCdRYJGiXjFYDHWwBB6XGjs9Hio4kkvDehLRredRgp1UJ73g6Av9L7xrTUide6GiPrSd+RJw7py/twx5qaeIjOWPy+XvtmabDEQBquLjEkvS+LP2EycaMe92kHMo1ItFfRomgj1FyNYPVnUFgdyedGWv+p553ziDbrMas=
dist: trusty
matrix:
fast_finish: true
include:
#
- os: linux
addons:
apt:
sources:
# see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
- ubuntu-toolchain-r-test
packages:
- binutils-mingw-w64-i686
- build-essential
- check
- cmake
- gcc-multilib
- g++-mingw-w64-i686
- g++-mingw-w64-x86-64
- g++-multilib
- graphviz
- libsubunit-dev
- libx11-dev
- mingw-w64
- python-six
- python3-six
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-latex-recommended
- valgrind
- wget
- xutils-dev
- zip
env:
- ANALYZE=false
- CC=gcc-4.8
- CXX=g++-4.8
- PYTHON=python2
- MINGW=true
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- check
- gcc-8
- gcc-8-multilib
- g++-8
- g++-8-multilib
- graphviz
- linux-libc-dev:i386
- python-six
- python3-six
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-latex-recommended
- valgrind
env:
- ANALYZE=false
- CC=gcc-8
- CXX=g++-8
- PYTHON=python2
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- clang-6.0
- clang-tidy-6.0
- graphviz
- python-six
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-latex-recommended
- valgrind
env:
- ANALYZE=false
- CC=clang-6.0
- CXX=clang++-6.0
- PYTHON=python2
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- clang-6.0
- clang-tidy-6.0
- graphviz
- python3-six
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-latex-recommended
- valgrind
env:
- ANALYZE=false
- CC=clang-6.0
- CXX=clang++-6.0
- PYTHON=python3
- os: linux
addons:
apt:
packages:
- check
- graphviz
- python-six
- python3-six
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-latex-recommended
env:
- ANALYZE=false
- CC=tcc
- PYTHON=python2
- os: linux
addons:
apt:
packages:
- cppcheck
env:
- ANALYZE=true
- CC=gcc-4.8
- CXX=g++-4.8
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- clang-6.0
- clang-tidy-6.0
- graphviz
- python-six
- python3-six
- texlive-fonts-recommended
- texlive-latex-extra
- texlive-latex-recommended
env:
- ANALYZE=true
- PYTHON=python3
- CC=clang-6.0
- CXX=clang++-6.0
#- os: linux
# compiler: gcc
# env: LINT=true
- os: linux
env:
- DOCKER=true
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-6.0
- ubuntu-toolchain-r-test
packages:
- check
- clang-6.0
- clang-tidy-6.0
- libfuzzer-6.0-dev
- python-six
- python3-six
env:
- FUZZER=true
- os: osx
compiler: clang
# disable homebrew auto update which takes a lot of time
env: HOMEBREW_NO_AUTO_UPDATE=1
cache:
directories:
- $HOME/Library/Caches/Homebrew
- os: linux
addons:
sonarcloud:
organization: open62541
branches:
- master
- sonarcloud
env:
- CC=gcc-4.9
- CXX=g++-4.9
- SONAR=true
- PYTHON=python2
cache:
directories:
- '$HOME/.sonar/cache'
addons:
coverity_scan:
project:
name: "open62541/open62541"
description: "Build submitted by Travis"
notification_email: [email protected]
build_command_prepend: "mkdir build && cd build && cmake .."
build_command: "make"
branch_pattern: coverity_scan
cache:
pip: true
apt: true
directories:
- $HOME/install
- $HOME/.cache/pip
# combine all the commands into one single command. See https://github.com/travis-ci/travis-ci/issues/1066
before_install: |
set -e
# set paths for locally installed libs (like liburcu)
export LOCAL_PKG=$HOME/install
mkdir -p $LOCAL_PKG/lib
mkdir -p $LOCAL_PKG/include
mkdir -p $LOCAL_PKG/bin
export LIBRARY_PATH=$LOCAL_PKG/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=$LOCAL_PKG/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$LOCAL_PKG/include:$CPLUS_INCLUDE_PATH
export PKG_CONFIG_PATH=$LOCAL_PKG/lib/pkgconfig:$PKG_CONFIG_PATH
export PATH=$LOCAL_PKG:$LOCAL_PKG/bin:$PATH
export CMAKE_PREFIX_PATH=$LOCAL_PKG:CMAKE_PREFIX_PATH
# set local path for python packages
export PATH=$PATH:$HOME/.local/bin # linux
export PATH=$PATH:$HOME/Library/Python #OS X
export PATH=$PATH:$HOME/Library/Python/2.7/bin #OS X
# Exit travis if on coverity_scan branch and not first build
test $TRAVIS_BRANCH != coverity_scan -o ${TRAVIS_JOB_NUMBER##*.} = 1 || exit 0
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_before_install.sh; fi
if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_before_install.sh; fi
script: |
set -e
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_script.sh; fi
if [ ${TRAVIS_OS_NAME} == "osx" ]; then sh ./tools/travis/travis_osx_script.sh; fi
after_success: |
if [ ${TRAVIS_OS_NAME} == "linux" ]; then sh ./tools/travis/travis_linux_after_success.sh; fi
# Sleep to flush travis output
echo == Build success ==
sleep 5
after_failure: |
# Sleep to flush travis output
echo == Build failed ==
sleep 5
deploy:
provider: releases
api_key:
secure: PKCoA7MBRtHloIbNF4Qj5LQyCafjekfVeFXlMBd9KmC0ynNuef+D7nn38f/jo25/b0Ii7r+hgslkQPezbKyEqo2zcCB8Pn8TWau2hbzKM/dUCPoN90HVaQcRjUi8P2Y+QkouwyPWSujBL35/X5QiAntRotCSbZx4fkyiN8cU95o=
file:
- open62541-win32.zip
- open62541-win64.zip
- open62541-linux32.tar.gz
- open62541-linux64.tar.gz
- open62541-raspberrypi.tar.gz
- open62541.c
- open62541.h
skip_cleanup: true
on:
repo: open62541/open62541
tags: true
condition: $CC = gcc && $ANALYZE = false