forked from faucetsdn/NetworkML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (25 loc) · 915 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
dist: xenial
services:
- rabbitmq
- redis
language: python
python:
- "3.5"
install:
- pip install codecov
env:
- PYTHONPATH=/home/travis/build/$TRAVIS_REPO_SLUG/bin:$PYTHONPATH PYTHONPATH=/home/travis/build/$TRAVIS_REPO_SLUG/networkml:$PYTHONPATH REDIS_HOST=localhost POSEIDON_PUBLIC_SESSIONS=1
jobs:
include:
- stage: test
script: make test
- script: find . -name requirements.txt -type f -exec pip3 install -r {} \; && pip3 uninstall -y poseidonml && pip3 install . && pytest -l -s -v --cov=tests/ --cov=networkml/ --cov-report term-missing -c .coveragerc
before_install:
- sudo tcpdump -i ens4 -w /home/travis/build/$TRAVIS_REPO_SLUG/tests/test3.pcap &
- sudo apt-get update
- sudo apt-get install docker-ce
- sudo pkill tcpdump
- sudo chmod 777 /home/travis/build/$TRAVIS_REPO_SLUG/tests/test.pcap
- mkdir -p /home/travis/build/$TRAVIS_REPO_SLUG/opts
after_success:
- codecov