2020-02-17 16:47:34 -05:00
|
|
|
language: python
|
|
|
|
|
|
|
|
services:
|
2020-03-23 14:27:29 -04:00
|
|
|
- postgresql
|
2020-02-17 16:47:34 -05:00
|
|
|
- docker
|
|
|
|
|
|
|
|
python:
|
|
|
|
- "3.7"
|
|
|
|
|
2020-03-23 14:27:29 -04:00
|
|
|
before_install:
|
2020-03-23 17:05:34 -04:00
|
|
|
- cp config/travis-testing.py config/testing.py
|
2020-03-23 14:27:29 -04:00
|
|
|
- psql -c 'create database pb_test;' -U postgres
|
|
|
|
|
2020-02-17 16:47:34 -05:00
|
|
|
install:
|
|
|
|
- pip install pipenv pytest
|
|
|
|
- pipenv install
|
|
|
|
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
|
|
|
|
|
|
|
|
# command to run tests
|
|
|
|
script:
|
|
|
|
- pytest
|
|
|
|
|
2020-04-03 11:32:50 -04:00
|
|
|
after_success:
|
|
|
|
- pip install --user awscli
|
|
|
|
- export PATH=$PATH:$HOME/.local/bin
|
2020-02-17 16:47:34 -05:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: script
|
2020-04-03 11:32:50 -04:00
|
|
|
script: bash deploy.sh
|
2020-02-17 16:47:34 -05:00
|
|
|
on:
|
2020-04-03 11:32:50 -04:00
|
|
|
branch: master
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
recipients:
|
|
|
|
- dan@sartography.com
|