forked from kyma-project/hydroform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 754 Bytes
/
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
.PHONY: build
build:
./provision/before-commit.sh ci
./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
test: test-provision test-install