-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
46 lines (34 loc) · 1.21 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
45
# -------------------------
# Integration testing
# -------------------------
integration-build: ## Build environment for integration tests
cd integration_tests && docker-compose build
.PHONY: integration-build
integration-tests: ## Run integration tests
cd integration_tests && docker-compose down && docker-compose run --rm tests
.PHONY: integration-test
# -------------------------
# Development and unit testing
# -------------------------
dev-setup: ## Install development dependencies
docker-compose up --build -d
.PHONY: dev-setup
tests: ## Run unit tests
docker-compose run graphene_federation py.test tests --cov=graphene_federation -vv
.PHONY: tests
check-style: ## Run linting
docker-compose run graphene_federation black graphene_federation --check
.PHONY: check-style
check-types: ## Run typing check
docker-compose run graphene_federation mypy graphene_federation
.PHONY: check-types
# -------------------------
# Help
# -------------------------
help: ## Show help
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help
.DEFAULT_GOAL := help
.EXPORT_ALL_VARIABLES:
DOCKER_BUILDKIT = 1
COMPOSE_DOCKER_CLI_BUILD = 1