Use http when not using tls
[multicloud/k8s.git] / src / k8splugin / Makefile
index 5544994..77196af 100644 (file)
@@ -7,9 +7,6 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 
-GOPATH := $(shell realpath "$(PWD)/../../")
-
-export GOPATH ...
 export GO111MODULE=on
 
 .PHONY: plugins
@@ -28,9 +25,8 @@ deploy: build
 
 .PHONY: test
 test: clean
-       @go build -buildmode=plugin -o ./mock_files/mock_plugins/mockplugin.so ./mock_files/mock_plugins/mockplugin.go
-       @go build -buildmode=plugin -o ./mock_files/mock_plugins/mocknetworkplugin.so ./mock_files/mock_plugins/mocknetworkplugin.go
-       @go test -v ./...
+       @go build -race -buildmode=plugin -o ./mock_files/mock_plugins/mockplugin.so ./mock_files/mock_plugins/mockplugin.go
+       @go test -race ./...
 
 format:
        @go fmt ./...
@@ -44,5 +40,5 @@ clean:
 
 .PHONY: cover
 cover:
-       @go test -p 2 ./... -coverprofile=coverage.out
+       @go test -race ./... -coverprofile=coverage.out
        @go tool cover -html=coverage.out -o coverage.html