-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds sonarcloud and coverage reporting. Removes duplicate config file.
- Loading branch information
Showing
5 changed files
with
64 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
sonar.organization=sartography | ||
sonar.projectKey=sartography_protocol-builder-mock | ||
sonar.host.url=https://sonarcloud.io | ||
sonar.exclusions=docs/**,config/**,instance/**,migrations/**,postgres/**,readme_images/**,schema/**,templates/** | ||
sonar.sources=pb | ||
sonar.test.inclusions=tests | ||
sonar.python.coverage.reportPaths=coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import re | ||
import os | ||
from os import environ | ||
|
||
basedir = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
NAME = "CR Connect Protocol Builder Mock" | ||
CORS_ENABLED = False | ||
CORS_ALLOW_ORIGINS = re.split(r',\s*', environ.get('CORS_ALLOW_ORIGINS', default="localhost:5000")) | ||
DEVELOPMENT = True | ||
TESTING = True | ||
SQLALCHEMY_DATABASE_URI = 'sqlite:///app.db' | ||
SQLALCHEMY_DATABASE_URI = environ.get('SQLALCHEMY_DATABASE_URI', default="sqlite:///app.db") | ||
SECRET_KEY = 'a really really really really long secret key' | ||
|
||
print('### USING TESTING CONFIG: ###') | ||
print('SQLALCHEMY_DATABASE_URI = ', SQLALCHEMY_DATABASE_URI) | ||
print('TESTING = ', TESTING) |
This file was deleted.
Oops, something went wrong.