diff options
Diffstat (limited to 'vendor/github.com/hashicorp/go-multierror/Makefile')
-rw-r--r-- | vendor/github.com/hashicorp/go-multierror/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/go-multierror/Makefile b/vendor/github.com/hashicorp/go-multierror/Makefile new file mode 100644 index 0000000..b97cd6e --- /dev/null +++ b/vendor/github.com/hashicorp/go-multierror/Makefile | |||
@@ -0,0 +1,31 @@ | |||
1 | TEST?=./... | ||
2 | |||
3 | default: test | ||
4 | |||
5 | # test runs the test suite and vets the code. | ||
6 | test: generate | ||
7 | @echo "==> Running tests..." | ||
8 | @go list $(TEST) \ | ||
9 | | grep -v "/vendor/" \ | ||
10 | | xargs -n1 go test -timeout=60s -parallel=10 ${TESTARGS} | ||
11 | |||
12 | # testrace runs the race checker | ||
13 | testrace: generate | ||
14 | @echo "==> Running tests (race)..." | ||
15 | @go list $(TEST) \ | ||
16 | | grep -v "/vendor/" \ | ||
17 | | xargs -n1 go test -timeout=60s -race ${TESTARGS} | ||
18 | |||
19 | # updatedeps installs all the dependencies needed to run and build. | ||
20 | updatedeps: | ||
21 | @sh -c "'${CURDIR}/scripts/deps.sh' '${NAME}'" | ||
22 | |||
23 | # generate runs `go generate` to build the dynamically generated source files. | ||
24 | generate: | ||
25 | @echo "==> Generating..." | ||
26 | @find . -type f -name '.DS_Store' -delete | ||
27 | @go list ./... \ | ||
28 | | grep -v "/vendor/" \ | ||
29 | | xargs -n1 go generate | ||
30 | |||
31 | .PHONY: default test testrace updatedeps generate | ||