distribution/.drone.yml

25 lines
577 B
YAML
Raw Normal View History

2014-11-19 22:53:32 +00:00
image: dmp42/go:stable
2014-11-07 23:45:51 +00:00
script:
2014-11-13 23:40:06 +00:00
- go get -t ./...
2014-11-07 23:45:51 +00:00
2014-11-13 23:40:06 +00:00
- FAIL=$(find ./ -iname "*.go" -exec gofmt -s -l {} \;) && echo "$FAIL" && test -z "$FAIL"
2014-11-07 23:45:51 +00:00
- go vet ./...
2014-11-13 23:40:06 +00:00
- FAIL=$(golint ./...) && echo "$FAIL" && test -z "$FAIL"
2014-11-07 23:45:51 +00:00
- go test -v ./...
2014-11-13 23:40:06 +00:00
- goveralls -v -service drone.io -repotoken {{COVERALLS_TOKEN}}
2014-11-07 23:45:51 +00:00
# - go build --tags SOMETAG
notify:
email:
recipients:
- distribution@docker.com
2014-11-13 23:40:06 +00:00
2014-11-07 23:45:51 +00:00
slack:
team: docker
2014-11-21 20:02:34 +00:00
channel: "#dt"
2014-11-07 23:45:51 +00:00
username: mom
2014-11-13 23:40:06 +00:00
token: {{SLACK_TOKEN}}
2014-11-07 23:45:51 +00:00
on_success: true
on_failure: true