summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorxuzhang3 <57888764+xuzhang3@users.noreply.github.com>2020-05-27 18:14:26 +0800
committerGitHub <noreply@github.com>2020-05-27 11:14:26 +0100
commit439d35adfe7cb0266177e7301b325a5fa0670a22 (patch)
treea8d1a1cea1a0b6344c68866972538b0a948ece6e /GNUmakefile
parent4cba5d89e94e03275d03fcfaef600ae21f89b101 (diff)
Support CI with makefile (#340)
* pipeline makefile Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * misspell install * pipeline makefile Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * CI build with makefile Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * go version Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com> * Bump go version from 1.12 to 1.13 Signed-off-by: xuzhang3 <57888764+xuzhang3@users.noreply.github.com>
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 4d76ea1d..53a62a27 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -13,11 +13,11 @@ default: build
tools:
@echo "==> installing required tooling..."
@sh "$(CURDIR)/scripts/gogetcookie.sh"
- GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
+ @echo $$GOPATH
GO111MODULE=off go get -u github.com/client9/misspell/cmd/misspell
GO111MODULE=off go get -u github.com/bflad/tfproviderlint/cmd/tfproviderlint
GO111MODULE=off go get -u github.com/bflad/tfproviderdocs
- GO111MODULE=off go get -u github.com/katbyte/terrafmt
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$GOPATH/bin v1.27.0
build: fmtcheck
go install
@@ -32,7 +32,7 @@ fmtcheck:
lint:
@echo "==> Checking source code against linters..."
- golangci-lint run ./...
+ $$GOPATH/bin/golangci-lint run ./...
test: fmtcheck
go test -tags "all" -i $(TEST) || exit 1