From 9eaaf4cee40cc8b3a9b4be86058f38558bbf7b1f Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Thu, 27 Jun 2019 13:07:21 -0600 Subject: [PATCH] Detach couch container --- .drone.yml | 5 +++++ testsettings.py | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 462434d..b675a00 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,11 +7,16 @@ steps: environment: COUCHDB_USER: admin COUCHDB_PASSWORD: password + detach: true - name: test image: python:3.6 commands: + # Wait for couch + - until curl 'http://localhost:5984' ; do sleep 1 ; done + # Configure settings - export HUMULUS_SETTINGS="$(pwd)/testsettings.py" + # Run tests - pip install coverage pytest - pip install -e . - coverage run -m pytest diff --git a/testsettings.py b/testsettings.py index bf6c7cc..4026d79 100644 --- a/testsettings.py +++ b/testsettings.py @@ -1,8 +1,4 @@ -FLASK_DEBUG = 1 SECRET_KEY = b'dev' -FLASK_ENV = 'development' -TEMPLATES_AUTO_RELOAD = True - COUCH_URL='http://localhost:5984' COUCH_USERNAME='admin' COUCH_PASSWORD='password'