2014-11-08 00:45:51 +01:00
|
|
|
image: bradrydzewski/go:1.3
|
|
|
|
|
|
|
|
env:
|
|
|
|
- GOROOT=/usr/local/go
|
|
|
|
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
|
|
|
|
|
|
|
script:
|
|
|
|
- go get github.com/axw/gocov/gocov
|
|
|
|
- go get github.com/mattn/goveralls
|
|
|
|
- go get github.com/golang/lint/golint
|
|
|
|
|
2014-11-14 00:40:06 +01:00
|
|
|
- go get -t ./...
|
2014-11-08 00:45:51 +01:00
|
|
|
|
2014-11-14 00:40:06 +01:00
|
|
|
- FAIL=$(find ./ -iname "*.go" -exec gofmt -s -l {} \;) && echo "$FAIL" && test -z "$FAIL"
|
2014-11-08 00:45:51 +01:00
|
|
|
- go vet ./...
|
2014-11-14 00:40:06 +01:00
|
|
|
- FAIL=$(golint ./...) && echo "$FAIL" && test -z "$FAIL"
|
2014-11-08 00:45:51 +01:00
|
|
|
- go test -v ./...
|
2014-11-14 00:40:06 +01:00
|
|
|
- goveralls -v -service drone.io -repotoken {{COVERALLS_TOKEN}}
|
2014-11-08 00:45:51 +01:00
|
|
|
# - go build --tags SOMETAG
|
|
|
|
|
|
|
|
notify:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- distribution@docker.com
|
2014-11-14 00:40:06 +01:00
|
|
|
|
2014-11-08 00:45:51 +01:00
|
|
|
slack:
|
|
|
|
team: docker
|
|
|
|
channel: "#distribution"
|
|
|
|
username: mom
|
2014-11-14 00:40:06 +01:00
|
|
|
token: {{SLACK_TOKEN}}
|
2014-11-08 00:45:51 +01:00
|
|
|
on_success: true
|
|
|
|
on_failure: true
|