diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-25 07:45:08 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-03-25 07:45:08 +0300 |
commit | 33723f8a85871797b6f38ab0340437a9b635f917 (patch) | |
tree | 9ff99365659f0e47673c9c8f5cd60610e88936f5 /Makefile.util.mk | |
parent | 575fec0d865d576c295aa7263d190744bd0a0328 (diff) |
Remove .GOPATH symlinks
Simplifies Makefiles to not use `.GOPATH` symlink.
Updates `test.yaml` to reuse the Go cache in between jobs instead of
removing and downloading all the dependencies for every job.
Changelog: other
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r-- | Makefile.util.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk index 5d5355e4..227f0d56 100644 --- a/Makefile.util.mk +++ b/Makefile.util.mk @@ -10,11 +10,11 @@ lint: .GOPATH/.ok bin/golangci-lint $Q ./bin/golangci-lint run ./... --out-format $(OUT_FORMAT) $(LINT_FLAGS) | tee ${REPORT_FILE} test: .GOPATH/.ok gitlab-pages - rm tests.out || true - go test $(if $V,-v) $(allpackages) 2>&1 | tee tests.out + rm -f tests.out + go test $(if $V,-v) ./... ${ARGS} 2>&1 | tee tests.out race: .GOPATH/.ok gitlab-pages - CGO_ENABLED=1 go test -race $(if $V,-v) $(allpackages) + CGO_ENABLED=1 go test -race $(if $V,-v) ./... acceptance: .GOPATH/.ok gitlab-pages go test $(if $V,-v) ./test/acceptance ${ARGS} 2>&1 | tee tests.out |