summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 888b20a72509ce5821d57056934b41832b83f62a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: c

compiler:
  - gcc
  - clang

env:
  - BUILD_LIBPCAP=true BUILD_IPV6=true
  - BUILD_LIBPCAP=true BUILD_IPV6=false

before_script:
  - sudo apt-get install libssl-dev libssl0.9.8 libssl1.0.0
  - if [ "$BUILD_LIBPCAP" = "true" ]; then ( cd ../ && git clone git://github.com/the-tcpdump-group/libpcap.git && cd libpcap && ./configure && make ); else sudo apt-get install libpcap-dev; fi

script:
  - if [ "$BUILD_IPV6" = "true" ]; then ./configure; else ./configure --disable-ipv6; fi
  - make
  - if [ "$BUILD_IPV6" = "true" ]; then make check; else true; fi