Running sonar from Travis CI

This commit is contained in:
Aaron Louie 2020-02-12 10:31:08 -05:00
parent 6408e45093
commit 8322713ea6
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
addons:
chrome: stable
sonarcloud:
organization: "sartography"
language: python
services:
@ -19,6 +24,7 @@ install:
# command to run tests
script:
- pytest
- sonar-scanner
# Would be better to directly test the docker image, may require setting
# up a docker-compose with postgres image and this docker image and connecting
@ -30,4 +36,4 @@ deploy:
provider: script
script: bash docker_push.sh
on:
branch: master
branch: master