Merge pull request #22 from laszlocph/go1_12

Building with Go 1.12
This commit is contained in:
Laszlo Fogas 2019-04-24 13:11:46 +02:00 committed by GitHub
commit fa03189109
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ workspace:
pipeline:
test:
image: golang:1.8
image: golang:1.12.4
commands:
- go get -u golang.org/x/tools/cmd/cover
- go get -u golang.org/x/net/context
@ -14,7 +14,7 @@ pipeline:
- go test -cover $(go list ./... | grep -v /vendor/)
test_postgres:
image: golang:1.8
image: golang:1.12.4
environment:
- DATABASE_DRIVER=postgres
- DATABASE_CONFIG=host=postgres user=postgres dbname=postgres sslmode=disable
@ -22,7 +22,7 @@ pipeline:
- go test github.com/laszlocph/drone-oss-08/store/datastore
test_mysql:
image: golang:1.8
image: golang:1.12.4
environment:
- DATABASE_DRIVER=mysql
- DATABASE_CONFIG=root@tcp(mysql:3306)/test?parseTime=true
@ -30,7 +30,7 @@ pipeline:
- go test github.com/laszlocph/drone-oss-08/store/datastore
build:
image: golang:1.8
image: golang:1.12.4
commands: sh .drone.sh
when:
event: [ push, tag ]