Added pipeline section to .drone.yml file
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
build:
|
workspace:
|
||||||
|
base: /go
|
||||||
|
path: src/github.com/josebarn/drone-with-go
|
||||||
|
pipeline:
|
||||||
|
build:
|
||||||
image: golang:1.5
|
image: golang:1.5
|
||||||
environment:
|
environment:
|
||||||
- GO15VENDOREXPERIMENT=1
|
- GO15VENDOREXPERIMENT=1
|
||||||
@@ -6,7 +10,7 @@ build:
|
|||||||
commands:
|
commands:
|
||||||
- go test -cover -coverprofile coverage.out
|
- go test -cover -coverprofile coverage.out
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
coverage:
|
coverage:
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
|
|||||||
Reference in New Issue
Block a user