2020-09-17 15:34:45 +00:00
|
|
|
language: python
|
|
|
|
|
|
|
|
python:
|
|
|
|
- "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- postgresql
|
|
|
|
- docker
|
|
|
|
|
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
sonarcloud:
|
|
|
|
organization: "sartography"
|
|
|
|
|
|
|
|
before_install:
|
2020-09-17 15:36:56 +00:00
|
|
|
- psql -c 'create database communicator_test;' -U postgres
|
2020-09-17 15:34:45 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- pipenv install --dev
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- TESTING=true
|
|
|
|
- SQLALCHEMY_DATABASE_URI="postgresql://postgres:@localhost:5432/communicator_test"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- pipenv run coverage run -m pytest
|
|
|
|
- pipenv run coverage xml -i
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- sonar-scanner
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: script
|
2020-09-21 20:18:26 +00:00
|
|
|
script: bash deploy.sh sartography/uva-covid19-testing-communicator
|
2020-09-17 15:34:45 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
all_branches: true
|
|
|
|
condition: $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|master|rrt\/.*)$
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
recipients:
|
|
|
|
- dan@sartography.com
|