Merge pull request #1 from josebarn/test-pr-branch

Test pr branch finally building with simple build and test - next stop integration test
This commit is contained in:
Joseph Barnett
2017-08-13 09:48:15 -03:00
committed by GitHub
3 changed files with 14 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
build: pipeline:
image: golang:1.5 build:
environment: image: ${IMAGE}
- GO15VENDOREXPERIMENT=1 commands:
- CGO_ENABLED=0 - go build
commands: - go test
- go test -cover -coverprofile coverage.out
publish: matrix:
coverage: IMAGE:
when: - golang:1.7
branch: master - golang:1.8
- golang:latest

View File

@@ -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) # 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. 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.