forked from opennetworkinglab/fabric-p4test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (39 loc) · 1.23 KB
/
.travis.yml
File metadata and controls
45 lines (39 loc) · 1.23 KB
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
dist: trusty
language: python
services:
- docker
python:
- "2.7"
env:
global:
- ONOS_BRANCH=onos-2.2
- PROFILES=all
- ONOS_ROOT=/tmp/onos
- FABRIC_TOFINO=/tmp/fabric-tofino
- FABRIC_PROFILE=fabric
jobs:
include:
- stage: ptf
name: "Run PTF tests on stratum_bmv2"
script:
- git clone --depth 1 https://github.com/opennetworkinglab/onos /tmp/onos -b $ONOS_BRANCH
- ./run/bmv2/run $PROFILES
- stage: tv
name: "Generate TestVectors for tofino and bmv2"
script:
- git clone --depth 1 https://github.com/opennetworkinglab/onos /tmp/onos -b $ONOS_BRANCH
- git clone https://github.com/opencord/fabric-tofino /tmp/fabric-tofino
# Generating fabric TestVectors for tofino
- ./run/tv/run $FABRIC_PROFILE
# Generating fabric TestVectors for bmv2 with all parameters
- ./run/tv/run $FABRIC_PROFILE DEVICE=bmv2 PORTMAP=port_map.veth.json GRPCADDR=localhost:28000 CPUPORT=255
- stage: checkstyle
name: "Checkstyle"
install: skip
script:
- pip install pycodestyle
- find . -name \*.py -exec pycodestyle --max-line-length=120 --ignore=E126,E127,E722,E502,E131 {} +
stages:
- checkstyle
- tv
- ptf