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'