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:
22
.drone.yml
22
.drone.yml
@@ -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 [](http://beta.drone.io/drone-demos/drone-with-go) [](https://aircover.co/drone-demos/drone-with-go)
|
# drone-with-go [](http://beta.drone.io/drone-demos/drone-with-go) [](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"
|
||||||
|
|||||||
Reference in New Issue
Block a user