forked from avocado-framework/avocado-vt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (27 loc) · 1.03 KB
/
.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
language: python
python:
- "3.6"
- "3.7"
- "3.8"
sudo: false
install:
- pip install Sphinx==1.3b1
- pip install -r requirements-travis.txt
- git clone --depth 1 https://github.com/avocado-framework/avocado.git --branch $([ $TRAVIS_PYTHON_VERSION == "2.7" ] && echo 69lts || echo master) avocado-libs
- cd avocado-libs
- pip install -e .
- cd ..
- pip install -e .
script:
# Create some fake binaries to make vt-bootstrap happy
- mkdir -p /tmp/dummy_bin
- touch /tmp/dummy_bin/arping
- touch /tmp/dummy_bin/tcpdump
- chmod 777 /tmp/dummy_bin/*
- export PATH="/tmp/dummy_bin:$PATH"
# Setup Avocado-vt for functional tests
- AVOCADO_LOG_DEBUG=yes avocado vt-bootstrap --vt-skip-verify-download-assets --yes-to-all
# Run tests
- inspekt checkall --disable-lint W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E1003,W605 --disable-style W605,W606,E501,E265,W601,E402,E722,E741 --exclude avocado-libs,scripts/github --no-license-check
# Cleanup avocado libs
- rm -rf avocado-libs