-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
50 lines (43 loc) · 1.49 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
# Travis CI integration
# Defaults to GNU GCC and autotools: ./configure && make && make test
language: c
sudo: required
# It is not really needed, other than for showing correct language tag in Travis CI build log.
language: c
compiler:
- gcc
- clang
addons:
apt:
packages:
- tree
- libnl-3-dev
- libnl-3-200
- libnl-route-3-200
- libnl-genl-3-200
- libnl-route-3-dev
- libnl-genl-3-dev
- libjansson-dev
- libev-dev
- tcpdump
- python-pip
# before_install:
# - docker run --privileged -d --name travis-ci -v $(pwd):/travis ubuntu:xenial tail -f /dev/null
# - docker ps
# install:
# - docker exec -t travis-ci bash -c "apt-get update;
# apt-get install -y libnl-3-dev libnl-3-200 libnl-route-3-200 libnl-genl-3-200 libnl-route-3-dev libnl-genl-3-dev libjansson-dev libev-dev build-essential autoconf automake pkg-config clang tcpdump iproute2 python-pip;
# mv /usr/sbin/tcpdump /usr/local/bin/; ln -s /usr/local/bin/tcpdump /usr/sbin/"
# script:
# - docker exec -t travis-ci bash -c "cd /travis; ./autogen.sh && ./configure && make && tests/ci/install.sh && tests/ci/run.sh"
# We don't store generated files (configure and Makefile) in GIT,
# so we must customize the default build script to run ./autogen.sh
script:
- ./autogen.sh
- ./configure --prefix=
- make V=1 all
- make V=1 install-strip DESTDIR=~/tmp
- tree -h ~/tmp
- ldd ~/tmp/bin/dhcp-helper
- size ~/tmp/bin/dhcp-helper
- ~/tmp/bin/dhcp-helper -h