mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-02-11 23:27:18 +00:00
30 lines
516 B
YAML
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 |