forked from xelerance/Openswan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (59 loc) · 1.66 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
os:
- linux
language: c
compiler:
- gcc
env:
matrix:
- BUILD_HISTORY_REVS=true
- BUILD_HISTORY_REVS=false
sudo: false
addons:
apt:
packages:
- make
- flex
- bison
- python-minimal
- libgmp-dev
- libgmp3-dev
- libpcap0.8-dev
- libpcap0.8
- electric-fence
- gcc-multilib
- tcpdump
- libnspr4-dev
- libnss3-dev
cache:
directories:
- $HOME/stuff
- $HOME/.ccache
env:
global:
- IPSECVERSION=0.0.0
- BUILD_ARCH=amd64
matrix:
- BUILD_HISTORY_REVS=false
- BUILD_HISTORY_REVS=true
# remove the oracle junk, because it otherwise gets updated, and we do not care about it.
before_install:
- if [ -z "$TRAVIS_OS_NAME" ]; then TRAVIS_OS_NAME=linux; fi
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew update; fi
before_script:
- tests/utils/testsetup.sh
- "PATH=$HOME/stuff/sbin:$PATH export PATH"
- which tcpdump
install:
- if [ "$TRAVIS_OS_NAME" = osx ]; then brew install libpcap libgmp flex bison; fi
- "PATH=$HOME/stuff/sbin:/usr/lib/ccache:$PATH export PATH"
- "echo WERROR=-Werror >Makefile.inc.local"
- "echo ARCH=${BUILD_ARCH} >>Makefile.inc.local"
- if [ "$BUILD_ARCH" = i386 ]; then echo "USERLINKEXTRA=-m32" >>Makefile.inc.local; echo "USERCOMPILEEXTRA=-m32" >>Makefile.inc.local; fi
script:
- export PATH=$PATH:$HOME/stuff/bin
- "cat Makefile.inc.local"
- "make env | sort -f"
- git --version
- "[ \"$BUILD_HISTORY_REVS\" = true ] || make programs ARCH=${BUILD_ARCH} LIBEFENCE="
- "[ \"$BUILD_HISTORY_REVS\" = true ] || make check ARCH=${BUILD_ARCH} LIBEFENCE="
- "[ \"$BUILD_HISTORY_REVS\" = false ] || tests/utils/build-every-version"