cr-connect-workflow/.travis.yml

33 lines
697 B
YAML
Raw Normal View History

2020-02-05 19:54:13 +00:00
language: python
services:
- postgresql
- docker
2020-02-05 19:54:13 +00:00
python:
- "3.7"
2020-02-05 20:26:08 +00:00
before_install:
- cp config/travis-testing.py config/testing.py
- psql -c 'create database crc_test;' -U postgres
2020-02-05 22:02:20 +00:00
install:
- pip install pipenv pytest
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
2020-02-05 20:28:41 +00:00
# command to run tests
script:
- pytest
2020-02-05 22:02:20 +00:00
# Would be better to directly test the docker image, may require setting
# up a docker-compose with postgres image and this docker image and connecting
# them. Which was getting ugly.
before_deploy:
- docker build -t sartography/cr-connect-workflow .
deploy:
provider: script
script: bash docker_push
on:
branch: master