forked from p34709852/monkey
Updated travis.yml according to scoutsuite changes
This commit is contained in:
parent
b0d4857e49
commit
d5f224f9f9
|
@ -27,7 +27,7 @@ install:
|
||||||
- pip install flake8 pytest dlint isort # for next stages
|
- pip install flake8 pytest dlint isort # for next stages
|
||||||
- pip install coverage # for code coverage
|
- pip install coverage # for code coverage
|
||||||
- pip install -r monkey/infection_monkey/requirements.txt # for unit tests
|
- pip install -r monkey/infection_monkey/requirements.txt # for unit tests
|
||||||
- pip install -r monkey/infection_monkey/system_info/collectors/scoutsuite/requirements.txt
|
- pip install -r monkey/common/cloud/scoutsuite/requirements.txt
|
||||||
- pip install pipdeptree
|
- pip install pipdeptree
|
||||||
# Fail builds on possible conflicting dependencies.
|
# Fail builds on possible conflicting dependencies.
|
||||||
- pipdeptree --warn fail
|
- pipdeptree --warn fail
|
||||||
|
@ -62,14 +62,14 @@ before_script:
|
||||||
script:
|
script:
|
||||||
# Check Python code
|
# Check Python code
|
||||||
## Check syntax errors and fail the build if any are found.
|
## Check syntax errors and fail the build if any are found.
|
||||||
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude=monkey/infection_monkey/system_info/collectors/scoutsuite
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude=monkey/common/cloud/scoutsuite
|
||||||
|
|
||||||
## Warn about linter issues.
|
## Warn about linter issues.
|
||||||
### --exit-zero forces Flake8 to use the exit status code 0 even if there are errors, which means this will NOT fail the build.
|
### --exit-zero forces Flake8 to use the exit status code 0 even if there are errors, which means this will NOT fail the build.
|
||||||
### --count will print the total number of errors.
|
### --count will print the total number of errors.
|
||||||
### --statistics Count the number of occurrences of each error/warning code and print a report.
|
### --statistics Count the number of occurrences of each error/warning code and print a report.
|
||||||
### The output is redirected to a file.
|
### The output is redirected to a file.
|
||||||
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=monkey/infection_monkey/system_info/collectors/scoutsuite > flake8_warnings.txt
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=monkey/common/cloud/scoutsuite > flake8_warnings.txt
|
||||||
## Display the linter issues
|
## Display the linter issues
|
||||||
- cat flake8_warnings.txt
|
- cat flake8_warnings.txt
|
||||||
## Make sure that we haven't increased the amount of warnings.
|
## Make sure that we haven't increased the amount of warnings.
|
||||||
|
|
Loading…
Reference in New Issue