-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (39 loc) · 1.04 KB
/
Makefile
File metadata and controls
44 lines (39 loc) · 1.04 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
SHELL = /bin/bash
INTERVIEW ?= foo
venv: venv/touchfile
venv/touchfile: dev_requirements.txt
test -d venv || bin/venv.sh
touch venv/touchfile
fix : venv
. venv/bin/activate
autopep8 --in-place src/*.py
make lint
lint : venv
. ./venv/bin/activate
pylint src/
clean:
rm -rf venv
find . | grep ".pyc$$" | xargs rm || true
docker-pull: FORCE
docker pull ubuntu:latest
docker-build: FORCE
docker build --no-cache -t meyerkev-${INTERVIEW?}-interview .
down: FORCE
docker-compose -f docker-compose.yml -p \
meyerkev-${INTERVIEW?}-interview stop \
meyerkev-${INTERVIEW?}-interview
up: FORCE
docker-compose -f docker-compose.yml -p \
meyerkev-${INTERVIEW?}-interview up -d --no-build \
meyerkev-${INTERVIEW?}-interview
sh: FORCE
docker-compose -f docker-compose.yml -p \
meyerkev-${INTERVIEW?}-interview run --rm --service-ports \
meyerkev-${INTERVIEW?}-interview /bin/bash
reset: down up
test:
pytest src/
local: FORCE
python src/server.py
# ref: http://www.gnu.org/software/make/manual/html_node/Force-Targets.html#Force-Targets
FORCE: