forked from TrueCloudLab/distribution
commit
b5cf681458
2 changed files with 5 additions and 23 deletions
10
.drone.yml
10
.drone.yml
|
@ -9,13 +9,13 @@ script:
|
||||||
- go get github.com/mattn/goveralls
|
- go get github.com/mattn/goveralls
|
||||||
- go get github.com/golang/lint/golint
|
- go get github.com/golang/lint/golint
|
||||||
|
|
||||||
- go get -d -t ./...
|
- go get -t ./...
|
||||||
|
|
||||||
- hack/validate_gofmt.sh
|
- FAIL=$(find ./ -iname "*.go" -exec gofmt -s -l {} \;) && echo "$FAIL" && test -z "$FAIL"
|
||||||
- goveralls -v -service drone.io -repotoken {{COVERALLS_TOKEN}}
|
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
- golint ./...
|
- FAIL=$(golint ./...) && echo "$FAIL" && test -z "$FAIL"
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
|
- goveralls -v -service drone.io -repotoken {{COVERALLS_TOKEN}}
|
||||||
# - go build --tags SOMETAG
|
# - go build --tags SOMETAG
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
|
@ -27,6 +27,6 @@ notify:
|
||||||
team: docker
|
team: docker
|
||||||
channel: "#distribution"
|
channel: "#distribution"
|
||||||
username: mom
|
username: mom
|
||||||
token: cwX6NE0KKYYQnZJVRaYWGxxJ
|
token: {{SLACK_TOKEN}}
|
||||||
on_success: true
|
on_success: true
|
||||||
on_failure: true
|
on_failure: true
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
#!/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 a new issue