mirror of
https://github.com/shouptech/humulus.git
synced 2026-02-03 22:09:41 +00:00
Add test configuration
This commit is contained in:
parent
4c81a8580c
commit
7f28223deb
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
9
testsettings.py
Normal file
9
testsettings.py
Normal 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'
|
||||
Loading…
Add table
Reference in a new issue