-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (19 loc) · 782 Bytes
/
Makefile
File metadata and controls
20 lines (19 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SHELL=/bin/bash
# Docker-compose
build: ## Build all docker images.
docker-compose build
flake8: ## Run flake8.
docker-compose run factom-api bash -lc "flake8 ."
shell: ## Open a bash shell inside docker conatiner.
docker-compose run factom-api bash
sandbox: ## Run the factom sandbox server.
docker-compose up factom-sandbox
test: ## Run test suite with latest Python version.
docker-compose run factom-api bash -lc "python3.6 -m pytest"
tox: ## Run tox.
docker-compose run factom-api bash -lc "tox"
clean: ## Clean the application.
find . -name '*.py[co]' -delete
find . -type d -name "__pycache__" -delete
help: ## Show this help.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'