forked from varnishcache/varnish-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
132 lines (128 loc) · 4.36 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
---
language: c
jobs:
allow_failures:
- os: osx
- stage: sanitizers
- arch: arm64
fast_finish: true
include:
- &test-linux
stage: test
os: linux
dist: bionic
arch: amd64
compiler: clang
addons:
apt:
packages:
- nghttp2
- python3-docutils
- python3-sphinx
- libunwind-dev
- libpcre3-dev
before_script:
- ./autogen.sh
- ./configure --with-unwind
script: &script-common
- |
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
make -j8 distcheck VERBOSE=1
else
make -j8 check VERBOSE=1
fi
- <<: *test-linux
arch: arm64
- <<: *test-linux
compiler: gcc
before_script:
- ./autogen.sh
- ./configure
- <<: *test-linux
compiler: gcc
arch: arm64
before_script:
- ./autogen.sh
- ./configure
- <<: *test-linux
env: WITNESS=1
script: make -j8 witness
- <<: *test-linux
stage: sanitizers
dist: xenial
addons:
apt:
sources:
- llvm-toolchain-xenial-8
packages:
- clang-8
- libunwind-dev
- llvm-8
- nghttp2
- python3-docutils
- python3-sphinx
env: ASAN=1 UBSAN=1
before_script:
- |
export ASAN_OPTIONS=abort_on_error=1,detect_odr_violation=1,detect_leaks=1,detect_stack_use_after_return=1,detect_invalid_pointer_pairs=1,handle_segv=0,handle_sigbus=0,use_sigaltstack=0,disable_coredump=0
export LSAN_OPTIONS=abort_on_error=1,use_sigaltstack=0,suppressions=$(pwd)/tools/lsan.suppr
export TSAN_OPTIONS=abort_on_error=1,halt_on_error=1,use_sigaltstack=0,suppressions=$(pwd)/tools/tsan.suppr
export UBSAN_OPTIONS=halt_on_error=1,print_stacktrace=1,use_sigaltstack=0,suppressions=$(pwd)/tools/ubsan.suppr
export CC=clang-8
- ./autogen.sh
- ./configure --with-unwind --enable-developer-warnings --enable-debugging-symbols --disable-stack-protector --with-persistent-storage --enable-asan --enable-ubsan
- stage: test
os: osx
osx_image: xcode11.3
compiler: clang
addons:
homebrew:
packages:
- docutils
- nghttp2
- sphinx-doc
update: true
before_script:
- export PATH="/usr/local/opt/sphinx-doc/bin:$PATH"
- ./autogen.sh
- ./configure
script: *script-common
- <<: *test-linux
stage: coverity
env:
- secure: "TndnHrwJk9FRSuVQWUk+ZrRc0jcNc0PW3TnvbRicIIwvYSLkMV5Y1tCQ5Jq/P98DA48/N/gf9DCAiFkxrNSKVeOY70FKgHYWlS130GhTv7r0c8zd+CdEXNORclcbBNV5F3Pli/LxZ+RUImjOfwcIcWV4eYv54Xv7aNFDAaDt4G9QlkSwXykLlZkoWLJQXFbhDBFioT1F1mucD9q9izEEeE+kqO1QH/IfobAq9v7/WrcS38sYI+0WvB1S0ajWuZJgRYqy1bocDNcQd05Vbr9NfAdJ9y+4VTuluZtTUyLxu3/0Tw8mAjHkcpOeNU26r3LnpdRk+5JuOFej/MrCmYRRawVfyvNGtu9RwcMkv8jl48TTs5kTf6UwFqJhe85QSlSi7IszfrE8HfB7B6u8eRr67rqjTr9k/BwEQyoBdK4JElQDj4A1GYHClomxgzmMZnVLvStnAm+IjdNlee4SfY0jj2KfPBd/v6Ms+LGVqNV9NDDKRQdOQD+H52MkIWs5Xu9fU5VaWP+xjFomA9aXex3r5FCssgyQ2P+HtWPdjNEtrkNezzfZ5b+VBVP87RdxfSqkZaRxi6gof0AgeTHWoi7GN1scseiKLxxCI7C0dfQgKrXTN7mZdcED1MMYdiaSI9mlSYQDDUHMQGeY1n3a9D6bUcC/TcmYo524PoTFBZgbbYM="
before_script:
- curl
--data "token=$COVTOKEN&project=varnish"
--insecure
-o coverity_tool.tgz https://scan.coverity.com/download/cxx/linux64
- tar xfz coverity_tool.tgz
- export PATH=$PATH:$(echo $(pwd)/cov-analysis-*/bin)
script:
- ./autogen.sh
- ./configure --with-unwind
- cov-build --dir cov-int make
- tar cfz varnish.tgz cov-int
- curl --form token="$COVTOKEN"
--form [email protected]
--form [email protected]
--form version="$TRAVIS_COMMIT"
--form description="$TRAVIS_BRANCH"
--insecure
'https://scan.coverity.com/builds?project=varnish'
stages:
- name: test
if: type != cron
- name: sanitizers
if: type != cron AND
type != pull_request
- name: coverity
if: type = cron
notifications:
irc:
if: branch = master AND
repo = varnishcache/varnish-cache
channels:
- "irc.linpro.no#varnish-hacking"
on_success: change
use_notice: true