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