-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
49 lines (37 loc) · 1.31 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
46
47
48
49
.PHONY: help clean clean-pyc clean-build list test coverage release
help:
@echo " clean-build - Remove build artifacts"
@echo " clean-pyc - Remove Python file artifacts"
@echo " lint - Check style with flake8"
@echo " test - Run tests quickly with the default Python"
@echo " install-requirements - install the requirements for development"
@echo " build Builds the docker images for the docker-compose setup"
@echo " docker-rm Stops and removes all docker containers"
@echo " run Run a command. Can run scripts, e.g. make run COMMAND=\"./scripts/schema_generator.sh\""
@echo " shell Opens a Bash shell"
clean: clean-build clean-pyc docker-rm
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
lint:
flake8 .
test:
docker-compose run hoval-gateway test
install-requirements:
pip install -r requirements/requirements.txt
build:
docker-compose build
docker-rm: stop
docker-compose rm -f
shell:
docker-compose run --entrypoint "/bin/bash" hoval-gateway
run:
docker-compose run hoval-gateway $(COMMAND)
stop:
docker-compose down
docker-compose stop