File tree 3 files changed +21
-10
lines changed
3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 6
6
go :
7
7
- 1.5
8
8
- tip
9
- install :
10
- - go get -t ./...
11
- - go get github.com/golang/lint/golint
12
- script :
13
- - go vet ./...
14
- - test -z "$(golint ./... | tee /dev/stderr)"
15
- - test -z "$(gofmt -s -l . | tee /dev/stderr)"
16
- - go test -tags=test -v ./...
9
+ install : make deps
10
+ script : make validate && make test
Original file line number Diff line number Diff line change
1
+ .PHONY : all deps test validate
2
+
3
+ all : deps test validate
4
+
5
+ deps :
6
+ go get -t ./...
7
+ go get github.com/golang/lint/golint
8
+
9
+ test :
10
+ go test -tags=test ./...
11
+
12
+ validate :
13
+ go vet ./...
14
+ test -z " $( golint ./... | tee /dev/stderr) "
15
+ test -z " $( gofmt -s -l . | tee /dev/stderr) "
Original file line number Diff line number Diff line change @@ -55,9 +55,11 @@ This package is still pending to be extracted from the Docker engine.
55
55
56
56
## Developing
57
57
58
- engine-api requires some minimal libraries that you can download running ` go get ./... ` .
58
+ engine-api requires some minimal libraries that you can download running ` make deps ` .
59
59
60
- To run tests, use this command ` go test -tags=test ./... ` . We use build tags to isolate functions and structures that are only available for testing.
60
+ To run tests, use the command ` make test ` . We use build tags to isolate functions and structures that are only available for testing.
61
+
62
+ To validate the sources, use the command ` make validate ` .
61
63
62
64
## License
63
65
You can’t perform that action at this time.
0 commit comments