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 language: python
services: services:
@ -19,6 +24,7 @@ install:
# command to run tests # command to run tests
script: script:
- pytest - pytest
- sonar-scanner
# Would be better to directly test the docker image, may require setting # 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 # up a docker-compose with postgres image and this docker image and connecting