cr-connect-workflow/.travis.yml

48 lines
834 B
YAML
Raw Normal View History

2020-02-05 19:54:13 +00:00
language: python
python:
2020-05-24 17:43:12 +00:00
- "3.7"
services:
- postgresql
- docker
addons:
chrome: stable
sonarcloud:
organization: "sartography"
2020-02-05 20:26:08 +00:00
before_install:
- psql -c 'create database crc_test;' -U postgres
2020-02-05 22:02:20 +00:00
install:
2020-06-16 18:46:38 +00:00
- pipenv install --dev
2020-02-05 22:02:20 +00:00
env:
2020-06-14 03:34:12 +00:00
global:
- TESTING=true
- PB_ENABLED=false
2020-06-14 03:46:00 +00:00
- SQLALCHEMY_DATABASE_URI="postgresql://postgres:@localhost:5432/crc_test"
2020-02-05 20:28:41 +00:00
script:
- pipenv run coverage run -m pytest
- pipenv run coverage xml -i
after_success:
2020-02-12 15:31:08 +00:00
- sonar-scanner
deploy:
provider: script
script: bash deploy.sh sartography/cr-connect-workflow
2020-04-03 19:38:23 +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