Build and test the docker container.
This commit is contained in:
parent
589b79e7fb
commit
af2f710ff4
10
.travis.yml
10
.travis.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue