-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
43 lines (37 loc) · 1.4 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
sudo: required
dist: xenial
language: python
python:
- "2.7"
go:
- "1.11.x"
before_install:
- sudo apt-get install autoconf automake libtool libssl-dev build-essential fakeroot dh-make dh-autoreconf libunbound-dev -y
- wget http://openvswitch.org/releases/openvswitch-2.10.1.tar.gz
- tar -xf openvswitch-2.10.1.tar.gz
- cd openvswitch-2.10.1/
- ./boot.sh && ./configure
- DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
- cd -
- sudo dpkg -i openvswitch-common_*.deb openvswitch-switch_*.deb libopenvswitch-dev_*.deb libopenvswitch_*.deb
- pip install pyDatalog
- pip install etcd3==0.10.0
install:
- cd src/tuplenet/pkt_controller
- ./boot.sh && ./configure CPPFLAGS=-I/usr/include/openvswitch && make
- cd -
- cd src/control
- wget https://github.com/etcd-io/etcd/releases/download/v3.1.20/etcd-v3.1.20-linux-amd64.tar.gz
- tar -xf etcd-v3.1.20-linux-amd64.tar.gz
- export PATH=$PATH:`pwd`/etcd-v3.1.20-linux-amd64/ && ./build.sh
- cd -
script:
- cd src/tests
- wget https://github.com/etcd-io/etcd/releases/download/v3.1.20/etcd-v3.1.20-linux-amd64.tar.gz
- tar -xf etcd-v3.1.20-linux-amd64.tar.gz
- sudo PATH=$PATH:`pwd`/etcd-v3.1.20-linux-amd64/ USE_SYSTEM_DOCKER=1 WAIT_FLOW_TIMEOUT=10 WAIT_PKT_TIMEOUT=0.2 ./runtest.sh 2
- cd -
- ./build-dist.sh
notifications:
email: