fix drone testing
this commit fixes the drone testing with a postgres database
This commit is contained in:
parent
56defcdd65
commit
e4236d22af
|
@ -1,10 +1,10 @@
|
||||||
image: go1.2
|
image: go1.2
|
||||||
env:
|
env:
|
||||||
- GOPATH=/var/cache/drone
|
- GOPATH=/var/cache/drone
|
||||||
- PGSTORE_TEST_CONN="postgres://postgres@localhost:5432/testDb?sslmode=disable"
|
|
||||||
services:
|
services:
|
||||||
- postgres
|
- postgres
|
||||||
script:
|
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
|
||||||
- make test
|
- make test
|
||||||
|
|
Loading…
Reference in New Issue