From e4236d22af3c64bf4b78f55e2e0d9ba91b311cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Lindstr=C3=B6m?= Date: Tue, 10 Jun 2014 06:20:04 +0000 Subject: [PATCH] fix drone testing this commit fixes the drone testing with a postgres database --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 44b1102..e1c21b9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,10 @@ image: go1.2 env: - GOPATH=/var/cache/drone - - PGSTORE_TEST_CONN="postgres://postgres@localhost:5432/testDb?sslmode=disable" services: - postgres script: - - createdb -h localhost -U postgres testDb + - export PGSTORE_TEST_CONN="postgres://postgres@127.0.0.1/test?sslmode=disable" + - psql -c 'create database test;' -U postgres -h 127.0.0.1 - make - make test