Removes duplicate pytest command. Runs sonar scanner only if tests pass.

This commit is contained in:
Aaron Louie 2020-04-06 18:14:18 -04:00
parent c6b6ee5d70
commit 0f22c8474b
1 changed files with 4 additions and 4 deletions

View File

@ -20,12 +20,12 @@ install:
- pip install pipenv pytest coverage awscli
- export PATH=$PATH:$HOME/.local/bin;
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
# command to run tests
script:
- coverage run -m pytest
- coverage xml -i
- pipenv run coverage run -m pytest
- pipenv run coverage xml -i
after_success:
- sonar-scanner
deploy: