1
0
mirror of https://github.com/distribution/distribution synced 2024-11-12 05:45:51 +01:00
distribution/.drone.yml

39 lines
918 B
YAML
Raw Normal View History

2014-11-19 23:53:32 +01:00
image: dmp42/go:stable
2014-11-08 00:45:51 +01:00
script:
# To be spoofed back into the test image
- go get github.com/modocache/gover
2014-11-14 00:40:06 +01:00
- go get -t ./...
2014-11-08 00:45:51 +01:00
# Go fmt
- test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
# Go lint
- test -z "$(golint ./... | tee /dev/stderr)"
# Go vet
2014-11-08 00:45:51 +01:00
- go vet ./...
# Go test
- go test -v -race -cover ./...
# Helper to concatenate reports
- gover
# Send to coverall
- goveralls -service drone.io -coverprofile=gover.coverprofile -repotoken {{COVERALLS_TOKEN}}
# Do we want these as well?
# - go get code.google.com/p/go.tools/cmd/goimports
# - test -z "$(goimports -l -w ./... | tee /dev/stderr)"
# http://labix.org/gocheck
2014-11-08 00:45:51 +01:00
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
2014-11-21 21:02:34 +01:00
channel: "#dt"
2014-11-08 00:45:51 +01:00
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