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'