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

Test pr branch finally building with simple build and test - next stop integration test
pull/2/head
Joseph Barnett 8 years ago committed by GitHub
commit 5d1a8bcb2a

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

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

@ -1,5 +1,5 @@
package main package main
import ( import (
"os" "os"
"testing" "testing"

Loading…
Cancel
Save