forked from brunorijsman/rift-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (27 loc) · 786 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
language: python
python:
- "3.5"
- "3.5-dev"
- "3.6"
- "3.6-dev"
- "3.7-dev"
install:
- virtualenv env --python=python3
- source env/bin/activate
- pip install -r requirements.txt
- pip install pylint
- pip install codecov
# Python3 needs root and setuid to allow test_kernel to add routes to the kernel
- sudo chown root env/bin/python3
- sudo chmod u+s env/bin/python3
# Insert list of interfaces and their addresses in log
- ifconfig
script:
# We are strict; if the pylint score is not perfect, we fail the build
- pytest --cov=rift tests && pylint rift && pylint tests && pylint tools && tools/update_cli_docs.py -c
after_success:
- codecov
after_failure:
- cat rift_expect.log
- cat rift_telnet_expect.log
- cat test_telnet_expect.log