cr-connect-workflow/.travis.yml

48 lines
852 B
YAML
Raw Normal View History

2020-02-05 14:54:13 -05:00
language: python
python:
- "3.7"
services:
- postgresql
- docker
addons:
chrome: stable
sonarcloud:
organization: "sartography"
2020-02-05 15:26:08 -05:00
before_install:
- cp config/travis-testing.py config/testing.py
- psql -c 'create database crc_test;' -U postgres
2020-02-05 17:02:20 -05:00
install:
2020-04-03 16:43:25 -04:00
- pip install pipenv pytest coverage awscli
- export PATH=$PATH:$HOME/.local/bin;
2020-02-05 17:02:20 -05:00
- pipenv install
env:
2020-05-07 14:27:32 -04:00
- PB_BASE_URL='http://workflow.sartography.com:5001/pb/'
2020-02-05 15:28:41 -05:00
script:
- pipenv run coverage run -m pytest
- pipenv run coverage xml -i
after_success:
2020-02-12 10:31:08 -05:00
- sonar-scanner
deploy:
provider: script
2020-04-03 10:09:06 -04:00
script: bash deploy.sh
2020-04-03 15:38:23 -04:00
skip_cleanup: true
on:
all_branches: true
2020-05-11 12:05:16 -04:00
condition: $TRAVIS_BRANCH =~ ^(dev|testing|demo|training|staging|master)$
notifications:
email:
on_success: change
on_failure: always
recipients:
- dan@sartography.com