forked from KissPeter/APIFuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 1.05 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
env:
global:
- CC_TEST_REPORTER_ID=f726d48e08c97402fff8db5969822b4564437d36d3e8d68eac5d4a4beb5c96f2
language: python
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
- "3.9-dev" # 3.9 development branch
# - "nightly" # nightly build
before_script:
- export PYTHONPATH=$PYTHONPATH:$(pwd)
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
before_install:
- sudo apt-get -y install libgnutls28-dev
install:
- pip3 install -r requirements.txt
script:
- ./APIFuzzer -h
- pip3 install -r test/requirements_for_test.txt
- python3 test/test_application.py&
- pytest -x --hypothesis-show-statistics --cov-report html --cov=apifuzzer --html=pytest.html --self-contained-html --durations=10 --show-capture=stdout -vv -rP test
- vulture --min-confidence 100 apifuzzer/ || true
after_script:
- coverage xml
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.8" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi