cr-connect-workflow/.travis.yml

46 lines
776 B
YAML
Raw Normal View History

2020-02-05 19:54:13 +00:00
language: python
python:
- "3.7"
services:
- postgresql
- docker
addons:
chrome: stable
sonarcloud:
organization: "sartography"
2020-02-05 20:26:08 +00:00
before_install:
- 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:
- pip install pipenv pytest coverage
2020-02-05 22:02:20 +00:00
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
2020-02-05 20:28:41 +00:00
# command to run tests
script:
2020-02-12 16:31:02 +00:00
- coverage run -m pytest
2020-02-12 16:04:04 +00:00
- coverage xml -i
2020-02-12 15:31:08 +00:00
- sonar-scanner
after_success:
- pip install --user awscli
- export PATH=$PATH:$HOME/.local/bin
deploy:
provider: script
2020-04-03 14:09:06 +00:00
script: bash deploy.sh
on:
2020-02-12 15:31:08 +00:00
branch: master
notifications:
email:
on_success: change
on_failure: always
recipients:
- dan@sartography.com