From 7f28223deb09aed9baa10273ea58c637446ce2ce Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Thu, 27 Jun 2019 13:04:19 -0600 Subject: [PATCH] Add test configuration --- .drone.yml | 7 +++++++ testsettings.py | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 testsettings.py diff --git a/.drone.yml b/.drone.yml index a969da3..462434d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,9 +2,16 @@ kind: pipeline name: default steps: +- name: launch couch + image: couchdb:2.3 + environment: + COUCHDB_USER: admin + COUCHDB_PASSWORD: password + - name: test image: python:3.6 commands: + - export HUMULUS_SETTINGS="$(pwd)/testsettings.py" - pip install coverage pytest - pip install -e . - coverage run -m pytest diff --git a/testsettings.py b/testsettings.py new file mode 100644 index 0000000..bf6c7cc --- /dev/null +++ b/testsettings.py @@ -0,0 +1,9 @@ +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' +COUCH_DATABASE='humulus'