forked from p4lang/behavioral-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.19 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
# Config file for automatic testing at travis-ci.org
sudo: required
language: cpp
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- libjudy-dev
- libgmp-dev
- libpcap-dev
- libboost1.55-dev
- libboost-test1.55-dev
- libboost-program-options1.55-dev
- libboost-system1.55-dev
- libboost-filesystem1.55-dev
- libboost-thread1.55-dev
- libevent-dev
- automake
- libtool
- flex
- bison
- pkg-config
- g++-4.8
- libssl-dev
before_install:
- g++ -v
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 99
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 99
- g++ -v
- bash build/travis/install-thrift.sh
- bash build/travis/install-nanomsg.sh
- sudo ldconfig
- bash build/travis/install-nnpy.sh
install:
- ./autogen.sh && ./configure --enable-coverage && make all
# command to run tests, e.g. python setup.py test
script:
- python build/travis/check-nnpy.py
- make check
# code coverage
after_success:
- cd modules/bm_sim/src; gcov -r -o .libs/ *.cpp; cd -
- bash <(curl -s https://codecov.io/bash)