-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
.travis.yml
214 lines (207 loc) · 6.61 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
# force run: 1
os: linux
language: c
python:
- "3.6"
before_install:
- sh -x ./scripts/ft-before_install.sh
# - sudo -H PATH="${PATH}:/usr/local/clang-3.4/bin" pip3 install -r requirements.txt
env:
global:
- COVERALLS_PARALLEL=true
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "MUzUSD/uRmjvh0oKBSlKfNkQnPGiN0l4TeKY1nehQQB4h6WiOlVbAu1PCUxR9G/DOmVMLUasWTEB9j5H9hWsvR1MwNge7woHtuW6YmUxw4/+Sh2pOqMIjwpqywFXtY/zfXa8AGpQI0ZOR0eg1mMq/6OV23pkOz9XnfqwvHtVvxs="
script: sh -x ./scripts/do-test.sh ${TTYPE}
after_success:
- for f in `make -f tests/Makefile list_tests`;
do
cat tests/${f}.log;
done
- sh -x ./scripts/submit-coverage.sh
notifications:
webhooks: https://coveralls.io/webhook
stages:
- name: Build Documentation
if: (branch != master OR type != push) AND branch != improve_coverage
- name: Build & Deploy Documentation
if: branch = master AND type = push
- name: Update Coverity Report
if: branch = master AND type = cron
jobs:
include:
- name: "Naked Build @ Ubuntu 16 GCC 7"
dist: xenial
compiler: gcc
env:
- TTYPE=cleanbuild
before_install: true
after_success: true
- name: "Naked Build @ Ubuntu 18 GCC 7"
dist: bionic
compiler: gcc
env:
- TTYPE=cleanbuild
before_install: true
after_success: true
- name: "Naked Build @ Ubuntu 16 Clang 7"
dist: xenial
compiler: clang
env:
- TTYPE=cleanbuild
before_install: true
after_success: true
- name: "Naked Build @ Ubuntu 18 Clang 7"
dist: bionic
compiler: clang
env:
- TTYPE=cleanbuild
before_install: true
after_success: true
- name: "Naked Build @ Ubuntu 18 Clang 9+LTO"
dist: bionic
compiler: clang
env:
- TTYPE=cleanbuild
- CC=clang-9 AR=llvm-ar-9 RANLIB=llvm-ranlib-9
- CONFIGURE_ARGS=--enable-lto
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
- sudo apt-get -y install clang-9 llvm-9-dev libc++-9-dev libc++abi-9-dev
after_success: true
- name: "All-Dependencies-Inclusive Build @ Ubuntu 16 GCC 7"
dist: xenial
compiler: gcc
env:
- TTYPE=depsbuild
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
after_success: true
- name: "All-Dependencies-Inclusive Build @ Ubuntu 18 GCC 7"
dist: bionic
compiler: gcc
env:
- TTYPE=depsbuild
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
after_success: true
- name: "All-Dependencies-Inclusive Build @ Ubuntu 16 Clang 7"
dist: xenial
compiler: clang
env:
- TTYPE=depsbuild
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
after_success: true
- name: "All-Dependencies-Inclusive Build @ Ubuntu 18 Clang 7"
dist: bionic
compiler: clang
env:
- TTYPE=depsbuild
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
after_success: true
- name: "All-Dependencies-Inclusive Build @ Ubuntu 18 Clang 9+LTO"
dist: bionic
compiler: clang
env:
- TTYPE=depsbuild
- CC=clang-9 AR=llvm-ar-9 RANLIB=llvm-ranlib-9
- CONFIGURE_ARGS=--enable-lto
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
- sudo apt-get -y install clang-9 llvm-9-dev libc++-9-dev libc++abi-9-dev
after_success: true
- name: "Functional Testing @ Ubuntu 16 GCC 7"
dist: xenial
compiler: gcc
env:
- TTYPE=basic
before_script:
- sh -x ./scripts/install_working_nc.sh
- name: "Functional Testing @ Ubuntu 18 GCC 7"
dist: bionic
compiler: gcc
env:
- TTYPE=basic
- name: "Functional Testing @ Ubuntu 16 Clang 7"
dist: xenial
compiler: clang
env:
- TTYPE=basic
- GCOV_CMD="llvm-cov gcov"
before_script:
- sh -x ./scripts/install_working_nc.sh
- name: "Functional Testing @ Ubuntu 18 Clang 7"
dist: bionic
compiler: clang
env:
- TTYPE=basic
- GCOV_CMD="llvm-cov gcov"
- name: "Functional Testing @ Ubuntu 18 Clang 9+LTO"
dist: bionic
compiler: clang
env:
- TTYPE=basic
- CC=clang-9 AR=llvm-ar-9 RANLIB=llvm-ranlib-9
- CONFIGURE_ARGS=--enable-lto
- GCOV_CMD="llvm-cov-9 gcov"
before_install:
- sh -x ./scripts/ft-before_install.sh
- sudo apt-get -y install clang-9 llvm-9-dev libc++-9-dev libc++abi-9-dev
- name: "Glitching @ Ubuntu 16 GCC 7"
dist: xenial
compiler: gcc
env:
- TTYPE=glitching
- name: "Glitching @ Ubuntu 18 GCC 7"
dist: bionic
compiler: gcc
env:
- TTYPE=glitching
- name: "Glitching @ Ubuntu 18 Clang 9+LTO"
dist: bionic
compiler: clang
env:
- TTYPE=glitching
- CC=clang-9 AR=llvm-ar-9 RANLIB=llvm-ranlib-9
- CONFIGURE_ARGS=--enable-lto
- GCOV_CMD="llvm-cov-9 gcov"
before_install:
- sh -x ./scripts/ft-before_install.sh
- sudo apt-get -y install clang-9 llvm-9-dev libc++-9-dev libc++abi-9-dev
- stage: Build Documentation
dist: bionic
name: Build Documentation
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
script: sh -x ./scripts/do-docbuild.sh
after_success: true
- stage: Build & Deploy Documentation
dist: bionic
name: Build Documentation and Deploy it to the rtpproxy.org repo
before_install:
- sudo -H DEBIAN_FRONTEND=noninteractive apt-get update
script:
- sh -x ./scripts/do-docbuild.sh
- sh -x ./scripts/do-docdeploy.sh
after_success: true
- stage: Update Coverity Report
dist: bionic
name: Push latest code to scan.coverity.com for analysis
addons:
coverity_scan:
project:
name: "sippy/rtpproxy"
description: "A high-performance software proxy for RTP streams"
notification_email: sobomax@sippysoft.com
build_command_prepend: "./configure"
build_command: "make all"
branch_pattern: master
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
script:
- true
after_success: true