2020-02-05 14:54:13 -05:00
|
|
|
language: python
|
2020-02-05 15:17:47 -05:00
|
|
|
|
2020-02-12 11:20:54 -05:00
|
|
|
python:
|
2020-05-24 13:43:12 -04:00
|
|
|
- "3.7"
|
2020-02-12 11:20:54 -05:00
|
|
|
|
2020-02-05 15:17:47 -05:00
|
|
|
services:
|
|
|
|
- postgresql
|
2020-02-05 15:53:52 -05:00
|
|
|
- docker
|
2020-02-05 15:17:47 -05:00
|
|
|
|
2020-02-12 11:20:54 -05:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
sonarcloud:
|
|
|
|
organization: "sartography"
|
|
|
|
|
2020-02-05 15:26:08 -05:00
|
|
|
before_install:
|
2020-02-05 15:17:47 -05:00
|
|
|
- psql -c 'create database crc_test;' -U postgres
|
2020-02-05 17:02:20 -05:00
|
|
|
|
|
|
|
install:
|
2020-06-16 14:46:38 -04:00
|
|
|
- pipenv install --dev
|
2020-02-05 17:02:20 -05:00
|
|
|
|
2020-04-15 13:11:15 -04:00
|
|
|
env:
|
2020-06-13 23:34:12 -04:00
|
|
|
global:
|
|
|
|
- TESTING=true
|
|
|
|
- PB_ENABLED=false
|
2020-06-13 23:46:00 -04:00
|
|
|
- SQLALCHEMY_DATABASE_URI="postgresql://postgres:@localhost:5432/crc_test"
|
2020-04-15 13:11:15 -04:00
|
|
|
|
2020-02-05 15:28:41 -05:00
|
|
|
script:
|
2020-04-06 18:14:18 -04:00
|
|
|
- pipenv run coverage run -m pytest
|
|
|
|
- pipenv run coverage xml -i
|
|
|
|
|
|
|
|
after_success:
|
2020-02-12 10:31:08 -05:00
|
|
|
- sonar-scanner
|
2020-02-05 15:53:52 -05:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: script
|
2020-06-16 11:09:48 -04:00
|
|
|
script: bash deploy.sh sartography/cr-connect-workflow
|
2020-04-03 15:38:23 -04:00
|
|
|
skip_cleanup: true
|
2020-02-05 15:53:52 -05:00
|
|
|
on:
|
2020-05-07 10:15:14 -04:00
|
|
|
all_branches: true
|
2020-05-13 21:15:13 -04:00
|
|
|
condition: $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|master|rrt\/.*)$
|
2020-04-03 09:53:47 -04:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
recipients:
|
|
|
|
- dan@sartography.com
|