diff options
Diffstat (limited to 'vendor/github.com/mitchellh/cli/Makefile')
-rw-r--r-- | vendor/github.com/mitchellh/cli/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/github.com/mitchellh/cli/Makefile b/vendor/github.com/mitchellh/cli/Makefile new file mode 100644 index 0000000..4874b00 --- /dev/null +++ b/vendor/github.com/mitchellh/cli/Makefile | |||
@@ -0,0 +1,20 @@ | |||
1 | TEST?=./... | ||
2 | |||
3 | default: test | ||
4 | |||
5 | # test runs the test suite and vets the code | ||
6 | test: | ||
7 | go list $(TEST) | xargs -n1 go test -timeout=60s -parallel=10 $(TESTARGS) | ||
8 | |||
9 | # testrace runs the race checker | ||
10 | testrace: | ||
11 | go list $(TEST) | xargs -n1 go test -race $(TESTARGS) | ||
12 | |||
13 | # updatedeps installs all the dependencies to run and build | ||
14 | updatedeps: | ||
15 | go list ./... \ | ||
16 | | xargs go list -f '{{ join .Deps "\n" }}{{ printf "\n" }}{{ join .TestImports "\n" }}' \ | ||
17 | | grep -v github.com/mitchellh/cli \ | ||
18 | | xargs go get -f -u -v | ||
19 | |||
20 | .PHONY: test testrace updatedeps | ||