forked from open62541/open62541
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
113 lines (101 loc) · 3.19 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
language: c
compiler:
- gcc
- clang
os:
- linux
- osx
# use new build environment (docker)
dist: trusty
sudo: required
env:
global:
# GITAUTH:
- secure: nSunY54Wp5HkQCHHbKwlwpbaKyqRVIu/0EnhaoJSwhM1wqerQV/E5d/2JelO9/tZgbungAO7wk/fjutRMVc7d378RTIPwS8vHpvZfEoGhCFsLoTOlqESzsZFBup2H5t1lpQ23jRHDOxlLdJy2lz5U+zd1YnYgDXqdDFjegsIYdo=
# COVERITY_SCAN_TOKEN:
- secure: C7LLWmOCdRYJGiXjFYDHWwBB6XGjs9Hio4kkvDehLRredRgp1UJ73g6Av9L7xrTUide6GiPrSd+RJw7py/twx5qaeIjOWPy+XvtmabDEQBquLjEkvS+LP2EycaMe92kHMo1ItFfRomgj1FyNYPVnUFgdyedGWv+p553ziDbrMas=
matrix:
# Do both, compile with static code analysis and without
- ANALYZE=false
- ANALYZE=true
- DOCKER=true
matrix:
exclude:
# This excludes OSX GCC builds.
- os: osx
compiler: gcc
- os: osx
env: ANALYZE=true
- os: osx
env: DOCKER=true
- os: linux
compiler: clang
env: DOCKER=true
# Required for docker build test
services:
- docker
addons:
apt:
sources:
# see https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
packages:
- binutils-mingw-w64-i686
- build-essential
- cmake
- gcc-multilib
- g++-multilib
- valgrind
- check
- cppcheck
- mingw-w64
- g++-mingw-w64-x86-64
- g++-mingw-w64-i686
- libc6-dbg # for valgrind compilation
- libsubunit-dev
- libx11-dev
- wget
- xutils-dev
- zip
- graphviz
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended
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
before_install:
- if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" = 1 ]; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; fi
- 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:
- if [ ${TRAVIS_OS_NAME} == "linux" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then sh ./tools/travis/travis_linux_script.sh; fi
- if [ ${TRAVIS_OS_NAME} == "osx" ] && [ "${COVERITY_SCAN_BRANCH}" != 1 ]; 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
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