mirror of https://github.com/docker/docs.git
Add DCO and gofmt checking
Signed-off-by: Andrew Page <admwiggin@gmail.com>
This commit is contained in:
parent
875f9e7214
commit
9a6ef553f5
|
|
@ -4,5 +4,14 @@ go:
|
|||
- 1.3
|
||||
- 1.4
|
||||
|
||||
install:
|
||||
- export DOCKER_PATH="${GOPATH%%:*}/src/github.com/docker/docker"
|
||||
- mkdir -pv "$DOCKER_PATH/project/make"
|
||||
- ( cd "$DOCKER_PATH/project/make" && wget -c 'https://raw.githubusercontent.com/docker/docker/master/project/make/'{.validate,validate-dco,validate-gofmt} )
|
||||
- sed -i 's!docker/docker!docker/swarm!' "$DOCKER_PATH/project/make/.validate"
|
||||
- go get -t -v ./...
|
||||
|
||||
script:
|
||||
- bash "$DOCKER_PATH/project/make/validate-dco"
|
||||
- bash "$DOCKER_PATH/project/make/validate-gofmt"
|
||||
- go test -v ./...
|
||||
|
|
|
|||
Loading…
Reference in New Issue