forked from p4lang/behavioral-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (22 loc) · 851 Bytes
/
.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
# Config file for automatic testing at travis-ci.org
sudo: required
dist: trusty
language: generic
services:
- docker
matrix:
include:
- env: CXX=g++ CC=gcc sswitch_grpc=yes
- env: CXX=g++-6 CC=gcc-6 GCOV=gcov-6 sswitch_grpc=no
- env: CXX=clang++-3.8 CC=clang-3.8 sswitch_grpc=no
addons:
apt:
sources:
- ubuntu-toolchain-r-test
install:
- docker build -t bm --build-arg IMAGE_TYPE=test --build-arg CC=$CC --build-arg CXX=$CXX --build-arg GCOV=$GCOV --build-arg sswitch_grpc=$sswitch_grpc .
script:
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker run $ci_env --env GCOV -w /behavioral-model bm /bin/bash -c "make check -j2 && ./travis/codecov.sh"
- if [ "$sswitch_grpc" = "yes" ]; then docker run -w /behavioral-model/targets/simple_switch_grpc bm make check -j2; fi
- bash tools/check_style.sh