forked from varnishcache/varnish-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (69 loc) · 2.33 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
---
language: c
sudo: false
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
compiler: gcc
- os: linux
dist: trusty
compiler: clang
- os: linux
dist: trusty
compiler: clang
env: CLANG=6.0 SAN_FLAGS="--enable-asan --enable-ubsan"
sudo: required
- os: osx
osx_image: xcode9.3
compiler: clang
allow_failures:
- os: osx
- env: CLANG=6.0 SAN_FLAGS="--enable-asan --enable-ubsan"
addons:
apt:
packages:
- python-docutils
- python-sphinx
notifications:
irc:
channels:
- "irc.linpro.no#varnish-hacking"
on_success: change
use_notice: true
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew upgrade python
brew install docutils sphinx-doc nghttp2
export PATH="/usr/local/opt/sphinx-doc/bin:$PATH"
elif [[ -n "$CLANG" ]]; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository -y \
"deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-$CLANG main"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
sudo apt-add-repository -y \
"deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main"
sudo apt-get update
sudo apt-get install -y clang-$CLANG llvm-$CLANG
export CC=clang-$CLANG
export CONFIGURE_ARGS="--enable-developer-warnings --enable-debugging-symbols --disable-stack-protector --with-persistent-storage ${SAN_FLAGS}"
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
fi
- ./autogen.sh
- ./configure ${CONFIGURE_ARGS}
script:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages
fi
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
make -j3 distcheck
else
make -j3 check VERBOSE=1
fi