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:
|
before_install:
|
||||||
- cp config/travis-testing.py config/testing.py
|
- cp config/travis-testing.py config/testing.py
|
||||||
- psql -c 'create database crc_test;' -U postgres
|
- psql -c 'create database crc_test;' -U postgres
|
||||||
|
- docker build -t sartography/cr-connect-workflow .
|
||||||
install:
|
- docker run sartography/cr-connect-workflow /bin/sh -c "pytest"
|
||||||
- pip install pipenv pytest
|
|
||||||
- pipenv install
|
|
||||||
- pytest # <== This runs in Pipenv (a/k/a virtualenv)
|
|
||||||
|
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script:
|
script:
|
||||||
- pytest
|
- pytest
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- docker build -t sartography/cr-connect-workflow .
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script: bash docker_push
|
script: bash docker_push
|
||||||
|
|
Loading…
Reference in New Issue