You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ebc01c2
Browse filesBrowse the repository at this point in the historyBrowse files
&&echo"deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main"| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list \
Copy file name to clipboardExpand all lines: cli/Makefile
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ OUTPUT_DIR := _output
7
7
8
8
HAS_GOX := $(shell command -v gox;)
9
9
HAS_PKGER := $(shell command -v pkger;)
10
+
HAS_GINKGO := $(shell command -v ginkgo;)
10
11
11
12
ifeq (${CI}, true)
12
13
CLI_EXT_BIN_DIR := "/build/_cli_ext_output"
@@ -68,12 +69,21 @@ copy-cli-ext: clean-cli-ext
68
69
# run tests
69
70
.PHONY: test
70
71
test: copy-cli-ext
71
-
go test -ldflags "-X github.com/hasura/graphql-engine/cli/version.BuildVersion=$(VERSION)" -v -tags="${TEST_TAGS}"`go list ./... | grep -v integration_test`
72
+
if [ -z"${HASURA_TEST_CLI_HGE_DOCKER_TAG}" ];thenecho"Please set HASURA_TEST_CLI_HGE_DOCKER_TAG env for populating testutil.HasuraVersion and run test";exit 1;fi
73
+
go test -ldflags "-X github.com/hasura/graphql-engine/cli/version.BuildVersion=$(VERSION)" -v -tags="${TEST_TAGS}"`go list ./... | grep -v integration_test | grep -v commands`
72
74
integration_tests_config_v3: copy-cli-ext
75
+
if [ -z"${HASURA_TEST_CLI_HGE_DOCKER_TAG}" ];thenecho"Please set HASURA_TEST_CLI_HGE_DOCKER_TAG env for populating testutil.HasuraVersion and run test";exit 1;fi
73
76
go test -ldflags "-X github.com/hasura/graphql-engine/cli/version.BuildVersion=$(VERSION)" -v -tags="${TEST_TAGS}" -run Commands/config=v3 ./integration_test
74
77
integration_tests_config_v2: copy-cli-ext
78
+
if [ -z"${HASURA_TEST_CLI_HGE_DOCKER_TAG}" ];thenecho"Please set HASURA_TEST_CLI_HGE_DOCKER_TAG env for populating testutil.HasuraVersion and run test";exit 1;fi
75
79
go test -ldflags "-X github.com/hasura/graphql-engine/cli/version.BuildVersion=$(VERSION)" -v -tags="${TEST_TAGS}" -run Commands/config=v2 ./integration_test
76
-
test-all: test integration_tests_config_v2 integration_tests_config_v3
80
+
test-e2e:
81
+
ifndefHAS_GINKGO
82
+
cd ~ && go get github.com/onsi/ginkgo/ginkgo && cd -
83
+
endif
84
+
cd commands && ginkgo -v --failFast
85
+
86
+
test-all: test integration_tests_config_v2 integration_tests_config_v3 test-e2e
0 commit comments