Removes duplicate pytest command. Runs sonar scanner only if tests pass.
This commit is contained in:
parent
c6b6ee5d70
commit
0f22c8474b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue