diff --git a/.drone.yml b/.drone.yml index b90ee66..5415c42 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,12 @@ -build: - image: golang:1.5 - environment: - - GO15VENDOREXPERIMENT=1 - - CGO_ENABLED=0 - commands: - - go test -cover -coverprofile coverage.out +pipeline: + build: + image: ${IMAGE} + commands: + - go build + - go test -publish: - coverage: - when: - branch: master +matrix: + IMAGE: + - golang:1.7 + - golang:1.8 + - golang:latest diff --git a/README.md b/README.md index 38ed11d..0df7a67 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # drone-with-go [![Build Status](http://beta.drone.io/api/badges/drone-demos/drone-with-go/status.svg)](http://beta.drone.io/drone-demos/drone-with-go) [![Build Status](https://aircover.co/badges/drone-demos/drone-with-go/coverage.svg)](https://aircover.co/drone-demos/drone-with-go) An example of how to test Go code with Drone. + +Inspect the .drone.yml file for details on the build steps for this simple go project. diff --git a/main_test.go b/main_test.go index 887a4df..4b3811b 100644 --- a/main_test.go +++ b/main_test.go @@ -1,5 +1,5 @@ package main - + import ( "os" "testing"