forked from brunorijsman/rift-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 774 Bytes
/
.travis.yml
File metadata and controls
29 lines (24 loc) · 774 Bytes
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
os: linux
jobs:
include:
- dist: jammy
python: 3.10
install:
- virtualenv env --python=python3
- source env/bin/activate
- pip install -r requirements-3-10.txt
# 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:
- pytest --cov=rift tests || tools/summarize-test-errors.sh
- echo "lint rift" && pylint rift
- echo "lint tests" && pylint tests
- echo "lint tools" && pylint tools
- echo "check cli docs" && tools/update_cli_docs.py -c
- sudo tools/chaos-test-suite --new-venv --iterations 3 && tools/interface_stats.py
after_success:
- codecov