From af2f710ff42d6446802bad37ac7c3622708f91d8 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Wed, 5 Feb 2020 16:29:34 -0500 Subject: [PATCH] Build and test the docker container. --- .travis.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 75ebcd3f..e3e17aba 100644 --- a/.travis.yml +++ b/.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