-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (66 loc) · 1.84 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
# Config
language: cpp
sudo: false
dist: trusty
cache: bundler
notifications:
email: false
# Build matrix (2x compiler, 1x confopts)
compiler:
- gcc
- clang
addons:
apt:
packages:
- libpcap-dev
- libsctp-dev
- libncurses5-dev
- libssl-dev
- libgsl0-dev
env:
- CONFOPTS="--with-gsl --with-openssl --with-pcap --with-rtpstream --with-sctp"
# Extend build matrix
matrix:
include:
- os: linux
compiler: gcc
env: CONFOPTS="--with-openssl --without-pcap --without-rtpstream"
- os: linux
compiler: gcc
env: CONFOPTS=""
- os: linux
compiler: gcc
env: CONFOPTS="--disable-epoll"
- os: linux
compiler: gcc
addons:
apt:
packages:
- g++-4.6
- libpcap-dev
- libsctp-dev
- libncurses5-dev
- libssl-dev
- libgsl0-dev
env:
- CC=gcc-4.6
- CXX=g++-4.6
- CONFOPTS="--with-gsl --with-openssl --with-pcap --with-rtpstream --with-sctp"
- os: osx
compiler: clang
env: CONFOPTS="--with-gsl --with-openssl --with-pcap --with-rtpstream"
before_script:
- autoreconf -vifs
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew install gsl; fi
# 2016-10: Apple doesn't include openssl any more because of security
# problems openssl had. Manually specify path to includes/libs.
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew install openssl; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then CPPFLAGS="-I/usr/local/opt/openssl/include"; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then LDFLAGS="-L/usr/local/opt/openssl/lib"; fi
- ./configure CPPFLAGS=$CPPFLAGS LDFLAGS=$LDFLAGS $CONFOPTS
script:
- make -j2
- make -j2 check
- if [ "$TRAVIS_OS_NAME" != osx ]; then ./regress/runtests; fi
- ./validate-src.sh