1
0
Fork 0
mirror of https://github.com/shouptech/humulus.git synced 2026-02-03 19:39:43 +00:00

Add couchurl as env variable

This commit is contained in:
Emma 2019-06-27 13:18:19 -06:00
parent a81562f379
commit 8813fb766a

View file

@ -11,12 +11,14 @@ services:
steps: steps:
- name: test - name: test
image: python:3.6 image: python:3.6
environment:
COUCH_URL: 'http://couchdb:5984'
commands: commands:
# Install pre-requisites # Install pre-requisites
- pip install coverage pytest - pip install coverage pytest
- pip install -e . - pip install -e .
# Wait for couch # Wait for couch
- until curl 'http://couchdb:5984' ; do sleep 1 ; done - until curl "$COUCH_URL" ; do sleep 1 ; done
# Run tests # Run tests
- coverage run -m pytest - coverage run -m pytest
- coverage report -m - coverage report -m