Fixed more bugs in travis, related to pytest and coverage

This commit is contained in:
VakarisZ 2020-10-07 10:39:44 +03:00
parent abe20c6a3a
commit 1af19dc8fa
1 changed files with 2 additions and 3 deletions

View File

@ -81,11 +81,10 @@ script:
## Run unit tests
- cd monkey # This is our source dir
- python -m pytest --ignore=./monkey/
common/cloud/scoutsuite # Have to use `python -m pytest` instead of `pytest` to add "{$builddir}/monkey/monkey" to sys.path.
- python -m pytest --ignore=./common/cloud/scoutsuite # Have to use `python -m pytest` instead of `pytest` to add "{$builddir}/monkey/monkey" to sys.path.
## Calculate Code Coverage
- coverage run -m pytest
- coverage run -m pytest --ignore=./common/cloud/scoutsuite
# Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors.
- cd monkey_island/cc/ui