forked from connectfit-team/maxscale-cdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 805 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
COVERAGE_OUTPUT = coverage.out
DOCKER_COMPOSE_FILE_TEST = docker-compose.yml
.PHONY: integration-tests
integration-tests: vendor
@echo "> Starting services needed for integration tests..."
@docker-compose -f $(DOCKER_COMPOSE_FILE_TEST) up \
--build \
--abort-on-container-exit \
--exit-code-from test-runner \
--remove-orphans
@echo "> Test finished. Removing services...."
@docker-compose down
.PHONY: coverage-html
coverage-html:
@echo "> Generating HTML representation of the coverage profile..."
@go tool cover -html=$(COVERAGE_OUTPUT)
.PHONY: clean
clean:
@echo "> Deleting coverage file $(COVERAGE_OUTPUT)..."
@rm -f $(COVERAGE_OUTPUT)
@echo "> Deleting vendor directory..."
@rm -rf vendor
.PHONY: vendor
vendor:
@echo "> Making vendored copy of dependencies..."
@go mod vendor