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:
parent
ede1e2c095
commit
35a48e11eb
2 changed files with 16 additions and 0 deletions
|
|
@ -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
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