forked from nccgroup/ScoutSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (38 loc) · 1.42 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: python
# Use container-base infrastructure
sudo: false
python:
- "3.5"
- "3.6"
matrix:
include:
- python: "3.7"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
install:
- pip install -U setuptools
- pip install -r requirements.txt
- pip install flake8
- pip install coveralls
- pip install codecov
before_script:
# Stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# Exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# Command to run tests
script:
- nosetests --with-coverage tests/test-utils.py
# - 'nosetests tests/test-listall.py'
# - 'nosetests tests/test-rulesgenerator.py'
# - 'nosetests tests/test-utils.py'
# - '[ "${TRAVIS_SECURE_ENV_VARS}" = "true" ] && nosetests tests/test-utils_sns.py || false'
- nosetests --with-coverage tests/test-main.py
- nosetests --with-coverage tests/test-resources.py
- nosetests --with-coverage tests/test-rules-ruleset.py
- nosetests --with-coverage tests/test-rules-processingengine.py
- nosetests --with-coverage --nocapture tests/test-scoutsuite.py -a "!credential"
# Update test coverage
after_success:
- coveralls
- codecov