forked from tintinweb/scapy-ssl_tls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (22 loc) · 800 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
os: linux
dist: bionic
language: python
python:
- "3.7"
# parallel testsuites
env:
- TEST_SUITE=unit
- TEST_SUITE=integration_external
- TEST_SUITE=integration_examples
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install nosexcover
- python setup.py install
# for integration examples
- pip install futures
# command to run tests
script:
- if [ $TEST_SUITE == "unit" ]; then python setup.py nosetests --with-xcoverage --cover-package=scapy_ssl_tls --cover-html --cover-branch --xcoverage-file=cover/cobertura.xml; else true; fi
- if [ $TEST_SUITE == "integration_external" ]; then python tests/integration_external.py; else true; fi
- if [ $TEST_SUITE == "integration_examples" ]; then python tests/integration_examples.py; else true; fi