Build and test the docker container.

This commit is contained in:
Dan Funk 2020-02-05 16:29:34 -05:00
parent 589b79e7fb
commit af2f710ff4
1 changed files with 2 additions and 8 deletions

View File

@ -10,19 +10,13 @@ python:
before_install:
- cp config/travis-testing.py config/testing.py
- psql -c 'create database crc_test;' -U postgres
install:
- pip install pipenv pytest
- pipenv install
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
- docker build -t sartography/cr-connect-workflow .
- docker run sartography/cr-connect-workflow /bin/sh -c "pytest"
# command to run tests
script:
- pytest
before_deploy:
- docker build -t sartography/cr-connect-workflow .
deploy:
provider: script
script: bash docker_push