mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 16:54:25 +00:00
38 lines
713 B
YAML
38 lines
713 B
YAML
language: python
|
|
|
|
services:
|
|
- postgresql
|
|
- docker
|
|
|
|
python:
|
|
- "3.7"
|
|
|
|
before_install:
|
|
- cp config/travis-testing.py config/testing.py
|
|
- psql -c 'create database pb_test;' -U postgres
|
|
|
|
install:
|
|
- pip install pipenv pytest awscli
|
|
- export PATH=$PATH:$HOME/.local/bin;
|
|
- pipenv install
|
|
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
|
|
|
|
# command to run tests
|
|
script:
|
|
- pytest
|
|
|
|
deploy:
|
|
provider: script
|
|
script: bash deploy.sh
|
|
skip_cleanup: true
|
|
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
|