1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-13 16:01:28 +05:30

Move CI scripts to the Makefile.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera
2016-02-08 09:39:18 -08:00
parent 21a3788372
commit 2847943b2f
2 changed files with 14 additions and 11 deletions
+3 -9
View File
@@ -7,12 +7,6 @@
email: false email: false
go: go:
- 1.5 - 1.5
install: install: make deps
- go get -t ./... before_script: test -z "$(make validate | tee /dev/stderr)"
- go get github.com/golang/lint/golint script: make test
before_script:
- go vet ./...
- test -z "$(golint ./... | tee /dev/stderr)"
- test -z "$(gofmt -s -l . | tee /dev/stderr)"
script:
- go test -v ./...
+11 -2
View File
@@ -1,10 +1,19 @@
.PHONY: all osxkeychain test .PHONY: all deps osxkeychain test
all: test all: test
deps:
go get -t ./...
go get github.com/golang/lint/golint
osxkeychain: osxkeychain:
mkdir -p bin mkdir -p bin
go build -o bin/docker-credential-osxkeychain osxkeychain/cmd/main_darwin.go go build -o bin/docker-credential-osxkeychain osxkeychain/cmd/main_darwin.go
test: test:
go test ./... go test -v ./...
validate:
go vet ./...
golint ./...
gofmt -s -l .