mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
commit
8217760a4d
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
image: bradrydzewski/go:1.3
|
||||||
|
|
||||||
|
env:
|
||||||
|
- GOROOT=/usr/local/go
|
||||||
|
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin
|
||||||
|
|
||||||
|
script:
|
||||||
|
- go get code.google.com/p/go.tools/cmd/vet
|
||||||
|
- go get code.google.com/p/go.tools/cmd/godoc
|
||||||
|
- go get code.google.com/p/go.tools/cmd/cover
|
||||||
|
- go get github.com/axw/gocov/gocov
|
||||||
|
- go get github.com/mattn/goveralls
|
||||||
|
- go get github.com/golang/lint/golint
|
||||||
|
|
||||||
|
- go get -d -t ./...
|
||||||
|
|
||||||
|
- hack/validate_gofmt.sh
|
||||||
|
- goveralls -v -service drone.io -repotoken $COVERALLS_TOKEN
|
||||||
|
- go vet ./...
|
||||||
|
- golint ./...
|
||||||
|
- go test -v ./...
|
||||||
|
# - go build --tags SOMETAG
|
||||||
|
|
||||||
|
notify:
|
||||||
|
email:
|
||||||
|
recipients:
|
||||||
|
- distribution@docker.com
|
||||||
|
|
||||||
|
slack:
|
||||||
|
team: docker
|
||||||
|
channel: "#distribution"
|
||||||
|
username: mom
|
||||||
|
token: cwX6NE0KKYYQnZJVRaYWGxxJ
|
||||||
|
on_success: true
|
||||||
|
on_failure: true
|
@ -1,5 +0,0 @@
|
|||||||
language: go
|
|
||||||
|
|
||||||
go:
|
|
||||||
- 1.3
|
|
||||||
- tip
|
|
17
README.md
Normal file
17
README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# docker-registry
|
||||||
|
|
||||||
|
[![Coverage Status][coverage-image]][coverage-url]
|
||||||
|
[![Build Status][build-image]][build-url]
|
||||||
|
|
||||||
|
## TL;DR
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
[Apache License](https://en.wikipedia.org/wiki/Apache_License)
|
||||||
|
|
||||||
|
[coverage-image]: https://coveralls.io/repos/docker/docker-registry/badge.png
|
||||||
|
[coverage-url]: https://coveralls.io/r/docker/docker-registry
|
||||||
|
|
||||||
|
[build-image]: https://ci.dockerproject.com/github.com/docker/docker-registry/status.svg?branch=next-generation
|
||||||
|
[build-url]: https://ci.dockerproject.com/github.com/docker/docker-registry?branch=next-generation
|
||||||
|
|
18
hack/validate_gofmt.sh
Executable file
18
hack/validate_gofmt.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
badFiles=($(find ./ -iname "*.go" -exec gofmt -s -l {} \;))
|
||||||
|
|
||||||
|
if [ ${#badFiles[@]} -eq 0 ]; then
|
||||||
|
echo 'Congratulations! All Go source files are properly formatted.'
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "These files are not properly gofmt'd:"
|
||||||
|
for f in "${badFiles[@]}"; do
|
||||||
|
echo " - $f"
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
echo 'Please reformat the above files using "gofmt -s -w" and commit the result.'
|
||||||
|
echo
|
||||||
|
} >&2
|
||||||
|
false
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user