Skip to content

Commit

Permalink
chore(Makefile): Generate a fatal error when KUBECONFIG env is not set (
Browse files Browse the repository at this point in the history
  • Loading branch information
krisctl authored Aug 31, 2020
1 parent 6169a02 commit 050bc75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ unit-tests: $(SOURCES)

.PHONY: integration-tests
## integration-tests Runs integration tests with codecov enabled.
integration-tests: get-ginkgo
integration-tests: check-env get-ginkgo
$(GOBIN)/ginkgo \
--progress \
--v \
Expand All @@ -49,6 +49,11 @@ integration-tests: get-ginkgo
github.com/aquasecurity/starboard/pkg/find/vulnerabilities/crd \
./itest

check-env:
ifndef KUBECONFIG
$(error Environment variable KUBECONFIG is not set)
endif

.PHONY: clean
clean:
rm -r ./bin
Expand Down

0 comments on commit 050bc75

Please sign in to comment.