trying to fix project build with more complex structure

This commit is contained in:
josebarn
2017-08-15 21:42:09 -03:00
parent 65577057ec
commit 22f185ed91
2 changed files with 10 additions and 8 deletions

View File

@@ -1,11 +1,17 @@
# NOTE: Refer drone Go example http://readme.drone.io/0.5/usage/golang-example/
workspace:
base: /go
path: src/github.com/josebarn/drone-with-go
pipeline:
build:
image: ${IMAGE}
commands:
image: golang
script:
- go get
- go build
unit-test:
image: ${IMAGE}
image: golang
commands:
- go test ./api
@@ -16,7 +22,3 @@ pipeline:
dockerfile: ./docker/Dockerfile
secrets: [ DOCKER_USERNAME, DOCKER_PASSWORD ]
# debug: true
matrix:
IMAGE:
- golang:latest