fix drone testing

this commit fixes the drone testing with a postgres database
This commit is contained in:
Anton Lindström 2014-06-10 06:20:04 +00:00
parent 56defcdd65
commit e4236d22af
1 changed files with 2 additions and 2 deletions

View File

@ -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