Trying to make the test work

This commit is contained in:
Shay Nehmad 2019-11-05 12:13:38 +02:00
parent ea5ae67891
commit d52d00e5d9
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ before_script:
# Display the linter issues
- cat flake8_warnings.txt
# Make sure that we haven't increased the amount of warnings.
- test (`tail -n 1 flake8_warnings.txt` -lt 180)
- WARNINGS_AMOUNT_UPPER_LIMIT=180
- if (test $(tail -n 1 flake8_warnings.txt) -gt $WARNINGS_AMOUNT_UPPER_LIMIT); echo "Too many warnings! Failing this build. Lower the amount of linter errors in this and try again. " && exit 1; fi
# Set the server config to `testing`, for the UTs to use mongomaock and pass.
- python monkey/monkey_island/cc/set_server_config.py testing