-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
37 lines (27 loc) · 1.27 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
BUILDDIR=build
help:
@echo ' '
@echo 'Usage: '
@echo ' make clean remove the generated files '
@echo ' make fullclean clean + remove tox, cache '
@echo ' make test run tests '
@echo ' make link run lint checks '
@echo ' make build_docker build docker image '
@echo ' '
clean:
@rm -rf ${BUILDDIR} .pytest_cache src/unicef_attachments.egg-info dist *.xml .cache *.egg-info .coverage .pytest MEDIA_ROOT MANIFEST .cache *.egg build STATIC
@find . -name __pycache__ -prune | xargs rm -rf
@find . -name "*.py?" -o -name "*.orig" -o -name "*.min.min.js" -o -name "*.min.min.css" -prune | xargs rm -rf
@rm -f coverage.xml flake.out pep8.out pytest.xml
fullclean:
rm -fr .tox
rm -f *.sqlite
make clean
lint:
flake8 src/; exit 0;
isort src/ --check-only; exit 0;
test:
coverage run manage.py test --keepdb
build_docker:
docker build -t unicef/etools-base:local -f Dockerfile-base .
docker build -t unicef/etools:local --build-arg BASE_TAG=local .