1
0
Fork 0
mirror of https://github.com/shouptech/humulus.git synced 2026-02-03 17:09:44 +00:00

Add test configuration

This commit is contained in:
Emma 2019-06-27 13:04:19 -06:00
parent ede1e2c095
commit 35a48e11eb
2 changed files with 16 additions and 0 deletions

View file

@ -2,9 +2,16 @@ kind: pipeline
name: default name: default
steps: steps:
- name: launch couch
image: couchdb:2.3
environment:
COUCHDB_USER: admin
COUCHDB_PASSWORD: password
- name: test - name: test
image: python:3.6 image: python:3.6
commands: commands:
- export HUMULUS_SETTINGS="$(pwd)/testsettings.py"
- pip install coverage pytest - pip install coverage pytest
- pip install -e . - pip install -e .
- coverage run -m pytest - coverage run -m pytest

9
testsettings.py Normal file
View file

@ -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'