From 8813fb766aaf26fb42439f369be695ed5034b259 Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Thu, 27 Jun 2019 13:18:19 -0600 Subject: [PATCH] Add couchurl as env variable --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 692cddd..2c18634 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,12 +11,14 @@ services: steps: - name: test image: python:3.6 + environment: + COUCH_URL: 'http://couchdb:5984' commands: # Install pre-requisites - pip install coverage pytest - pip install -e . # Wait for couch - - until curl 'http://couchdb:5984' ; do sleep 1 ; done + - until curl "$COUCH_URL" ; do sleep 1 ; done # Run tests - coverage run -m pytest - coverage report -m