-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (29 loc) · 1.02 KB
/
Copy pathMakefile
File metadata and controls
50 lines (29 loc) · 1.02 KB
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
50
APP=openid-wargaming
IMAGE=${APP}-image
all: install
doc:
make -C doc/ html
install:
pip install .
develop:
pip install -r requirements.txt -r requirements-dev.txt
pip install -e .
wip: develop
py.test -m "wip" -v --cov-report html:.cov_html --cov-report term --cov=${APP}
test: develop
py.test -vv -m "not wip" --cov-report term --cov-report html:.cov_html --cov=${APP} && pylint -r y ${APP}/
docker-image:
docker build -t ${IMAGE} --build-arg=make_mode=${MAKE_MODE} .
docker-run: docker
docker run --name ${APP}-container -v `pwd`:/usr/src/app -it ${IMAGE} bash
docker-delete:
docker rmi -f ${IMAGE} || echo "Go"
docker rm -f ${APP}-container || echo "Go"
docker-test:
docker rm -f ${APP}-container; echo
docker build -t ${IMAGE} --build-arg=make_mode=test .
docker-wip:
docker rm -f ${CONTAINER}-test; echo
docker build -t ${CONTAINER}-test --build-arg=make_mode=wip .
docker: docker-delete docker-image docker-run
.PHONY: all doc install develop wip test docker-image docker-run docker-delete docker-dev