protocol-builder-mock/.travis.yml

38 lines
713 B
YAML
Raw Normal View History

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:
- 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:
2020-04-03 16:41:28 -04:00
- pip install pipenv pytest awscli
- export PATH=$PATH:$HOME/.local/bin;
2020-02-17 16:47:34 -05:00
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
# command to run tests
script:
- pytest
deploy:
provider: script
script: bash deploy.sh
2020-04-03 15:38:01 -04:00
skip_cleanup: true
2020-02-17 16:47:34 -05:00
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