forked from kyma-project/hydroform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (37 loc) · 1.08 KB
/
Makefile
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
.PHONY: build
build:
./provision/before-commit.sh ci
./install/before-commit.sh ci
./parallel-install/before-commit.sh ci
.PHONY: ci-pr
ci-pr: build
.PHONY: ci-master
ci-master: build
.PHONY: ci-release
ci-release: build
.PHONY: test-provision
test-provision:
@cd provision; \
echo "Running tests for provision"; \
go test -coverprofile=cover.out ./... ;\
echo "Total test coverage: $$(go tool cover -func=cover.out | grep total | awk '{print $$3}')" ;\
rm cover.out ; \
cd ..;
.PHONY: test-install
test-install:
@cd install; \
echo "Running tests for install"; \
go test -coverprofile=cover.out ./... ;\
echo "Total test coverage: $$(go tool cover -func=cover.out | grep total | awk '{print $$3}')" ;\
rm cover.out ; \
cd ..;
.PHONY: test-parallel-install
test-parallel-install:
@cd parallel-install; \
echo "Running tests for parallel-install"; \
go test -coverprofile=cover.out ./... ;\
echo "Total test coverage: $$(go tool cover -func=cover.out | grep total | awk '{print $$3}')" ;\
rm cover.out ; \
cd ..;
.PHONY: test
test: test-provision test-install test-parallel-install