File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ GO ?= go
2+
3+ .PHONY : build build-cli build-controller test ci e2e e2e-unmanaged e2e-managed e2e-all e2e-all-mutation
4+
5+ build : build-cli build-controller
6+
7+ build-cli :
8+ $(GO ) build -o cloudstackctl main.go
9+
10+ build-controller :
11+ $(GO ) build -o cloudstackctl-controller cmd/controller/main.go
12+
13+ test :
14+ $(GO ) test ./...
15+
16+ ci : build test
17+
18+ e2e :
19+ @set -a; \
20+ [ -f .env.cloudstack ] && . ./.env.cloudstack || true ; \
21+ [ -f .env.database ] && . ./.env.database || true ; \
22+ set +a; \
23+ E2E_CLOUDSTACK=true go test -v ./tests/e2e -count=1
24+
25+ e2e-unmanaged :
26+ @set -a; \
27+ [ -f .env.cloudstack ] && . ./.env.cloudstack || true ; \
28+ [ -f .env.database ] && . ./.env.database || true ; \
29+ set +a; \
30+ E2E_CLOUDSTACK=true go test -v ./tests/e2e -run Unmanaged -count=1
31+
32+ e2e-managed :
33+ @set -a; \
34+ [ -f .env.cloudstack ] && . ./.env.cloudstack || true ; \
35+ [ -f .env.database ] && . ./.env.database || true ; \
36+ set +a; \
37+ E2E_MANAGED=true E2E_CONTROLLER_ENDPOINT=$$ {E2E_CONTROLLER_ENDPOINT:-http://localhost:65426} go test -v ./tests/e2e -run Managed -count=1
38+
39+ e2e-all :
40+ @set -a; \
41+ [ -f .env.cloudstack ] && . ./.env.cloudstack || true ; \
42+ [ -f .env.database ] && . ./.env.database || true ; \
43+ set +a; \
44+ E2E_CLOUDSTACK=true E2E_MANAGED=true E2E_CONTROLLER_ENDPOINT=$$ {E2E_CONTROLLER_ENDPOINT:-http://localhost:65426} go test -v ./tests/e2e -count=1
45+
46+ e2e-all-mutation :
47+ @set -a; \
48+ [ -f .env.cloudstack ] && . ./.env.cloudstack || true ; \
49+ [ -f .env.database ] && . ./.env.database || true ; \
50+ set +a; \
51+ E2E_CLOUDSTACK=true E2E_MANAGED=true E2E_ALLOW_MUTATION=true E2E_CONTROLLER_ENDPOINT=$$ {E2E_CONTROLLER_ENDPOINT:-http://localhost:65426} go test -v ./tests/e2e -count=1
You can’t perform that action at this time.
0 commit comments