Skip to content

Commit ef98774

Browse files
Merge pull request #2940 from stephenfin/makefile
Add minimal Makefile
2 parents d274424 + dfa4bec commit ef98774

File tree

2 files changed

+94
-0
lines changed

2 files changed

+94
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.idea
33
.vscode
44
testing_*.coverprofile
5+
/cover.out

Makefile

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
undefine GOFLAGS
2+
3+
lint:
4+
go fmt ./...
5+
go vet -tags "fixtures acceptance" ./...
6+
.PHONY: lint
7+
8+
unit:
9+
go test ./...
10+
.PHONY: unit
11+
12+
coverage:
13+
go test -covermode count -coverprofile cover.out -coverpkg=./... ./...
14+
.PHONY: coverage
15+
16+
acceptance: acceptance-baremetal acceptance-blockstorage acceptance-clustering acceptance-compute acceptance-container acceptance-containerinfra acceptance-db acceptance-dns acceptance-identity acceptance-imageservice acceptance-keymanager acceptance-loadbalancer acceptance-messaging acceptance-networking acceptance-objectstorage acceptance-orchestration acceptance-placement acceptance-sharedfilesystems acceptance-workflow
17+
.PHONY: acceptance
18+
19+
acceptance-baremetal:
20+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/baremetal/...
21+
.PHONY: acceptance-baremetal
22+
23+
acceptance-blockstorage:
24+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/blockstorage/...
25+
.PHONY: acceptance-blockstorage
26+
27+
acceptance-clustering:
28+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/clustering/...
29+
.PHONY: acceptance-clustering
30+
31+
acceptance-compute:
32+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/compute/...
33+
.PHONY: acceptance-compute
34+
35+
acceptance-container:
36+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/container/...
37+
.PHONY: acceptance-container
38+
39+
acceptance-containerinfra:
40+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/containerinfra/...
41+
.PHONY: acceptance-containerinfra
42+
43+
acceptance-db:
44+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/db/...
45+
.PHONY: acceptance-db
46+
47+
acceptance-dns:
48+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/dns/...
49+
.PHONY: acceptance-dns
50+
51+
acceptance-identity:
52+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/identity/...
53+
.PHONY: acceptance-identity
54+
55+
acceptance-image:
56+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/imageservice/...
57+
.PHONY: acceptance-image
58+
59+
acceptance-keymanager:
60+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/keymanager/...
61+
.PHONY: acceptance-keymanager
62+
63+
acceptance-loadbalancer:
64+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/loadbalancer/...
65+
.PHONY: acceptance-loadbalancer
66+
67+
acceptance-messaging:
68+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/messaging/...
69+
.PHONY: acceptance-messaging
70+
71+
acceptance-networking:
72+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/networking/...
73+
.PHONY: acceptance-networking
74+
75+
acceptance-objectstorage:
76+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/objectstorage/...
77+
.PHONY: acceptance-objectstorage
78+
79+
acceptance-orchestration:
80+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/orchestration/...
81+
.PHONY: acceptance-orchestration
82+
83+
acceptance-placement:
84+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/placement/...
85+
.PHONY: acceptance-placement
86+
87+
acceptance-sharedfilesystems:
88+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/sharedfilesystems/...
89+
.PHONY: acceptance-sharefilesystems
90+
91+
acceptance-workflow:
92+
go test -tags "fixtures acceptance" ./internal/acceptance/openstack/workflow/...
93+
.PHONY: acceptance-workflow

0 commit comments

Comments
 (0)