๐Ÿ“ฆ cloudflare / cloudflare-blog

๐Ÿ“„ Makefile ยท 21 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: test
test: venv/.ok
	unshare -Ur ./venv/bin/coverage run -m unittest test.py
	./venv/bin/coverage report -m

.PHONY: format
format:
	./venv/bin/yapf -i test_base.py
	./venv/bin/yapf -i test.py
	./venv/bin/yapf -i connectx.py


venv/.ok:
	virtualenv venv
	./venv/bin/pip3 install yapf
	./venv/bin/pip3 install coverage
	touch $@