forked from p4lang/p4c-bm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (56 loc) · 1.59 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
# Config file for automatic testing at travis-ci.org
sudo: false
language: python
python:
- "2.7"
env:
- TOX_ENV=py27
- TOX_ENV=flake8
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- libjudy-dev
- libboost1.55-dev
- libboost-test1.55-dev
- libboost-program-options1.55-dev
- libboost-system1.55-dev
- libboost-filesystem1.55-dev
- libevent-dev
- automake
- libtool
- flex
- bison
- pkg-config
- g++-4.8
- libssl-dev
before_install:
- bash build/travis/install-thrift.sh
- export PATH=$PATH:$HOME/thrift/bin/
- export LDFLAGS="$LDFLAGS -L$HOME/thrift/lib"
- export CPPFLAGS="$CPPFLAGS -I$HOME/thrift/include"
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/thrift/lib
- bash build/travis/install-nanomsg.sh
- export LDFLAGS="$LDFLAGS -L$HOME/nanomsg/lib"
- export CPPFLAGS="$CPPFLAGS -I$HOME/nanomsg/include"
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/nanomsg/lib
cache:
directories:
- $HOME/thrift
- $HOME/nanomsg
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -r requirements.txt
- pip install tox
- cd pd_mk/ && ./autogen.sh && CXX=g++-4.8 ./configure && make 'P4_PATH=tests/test.p4' 'P4_PREFIX=test' && cd ..
# command to run tests, e.g. python setup.py test
script:
- tox -e $TOX_ENV
- cd pd_mk/ && make 'P4_PATH=tests/test.p4' 'P4_PREFIX=test' check
- ./tests/test; cd ..
after_success:
# Report coverage results to codecov.io
- pip install codecov
- codecov