-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) · 1.6 KB
/
Makefile
File metadata and controls
51 lines (40 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
GO ?= go
.PHONY: build build-cli build-controller test ci e2e e2e-unmanaged e2e-managed e2e-all e2e-all-mutation
build: build-cli build-controller
build-cli:
$(GO) build -o cloudstackctl main.go
build-controller:
$(GO) build -o cloudstackctl-controller cmd/controller/main.go
test:
$(GO) test ./...
ci: build test
e2e:
@set -a; \
[ -f .env.cloudstack ] && . ./.env.cloudstack || true; \
[ -f .env.database ] && . ./.env.database || true; \
set +a; \
E2E_CLOUDSTACK=true go test -v ./tests/e2e -count=1
e2e-unmanaged:
@set -a; \
[ -f .env.cloudstack ] && . ./.env.cloudstack || true; \
[ -f .env.database ] && . ./.env.database || true; \
set +a; \
E2E_CLOUDSTACK=true go test -v ./tests/e2e -run Unmanaged -count=1
e2e-managed:
@set -a; \
[ -f .env.cloudstack ] && . ./.env.cloudstack || true; \
[ -f .env.database ] && . ./.env.database || true; \
set +a; \
E2E_MANAGED=true E2E_CONTROLLER_ENDPOINT=$${E2E_CONTROLLER_ENDPOINT:-http://localhost:65426} go test -v ./tests/e2e -run Managed -count=1
e2e-all:
@set -a; \
[ -f .env.cloudstack ] && . ./.env.cloudstack || true; \
[ -f .env.database ] && . ./.env.database || true; \
set +a; \
E2E_CLOUDSTACK=true E2E_MANAGED=true E2E_CONTROLLER_ENDPOINT=$${E2E_CONTROLLER_ENDPOINT:-http://localhost:65426} go test -v ./tests/e2e -count=1
e2e-all-mutation:
@set -a; \
[ -f .env.cloudstack ] && . ./.env.cloudstack || true; \
[ -f .env.database ] && . ./.env.database || true; \
set +a; \
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