protocol-builder-mock/.travis.yml

30 lines
516 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
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
# command to run tests
script:
- pytest
before_deploy:
- docker build -t sartography/protocol-builder-mock .
deploy:
provider: script
script: bash docker_push.sh
on:
branch: master