-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
49 lines (37 loc) · 1.35 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
clean: clean-build clean-pyc clean-test ## remove all build, test, coverage and Python artifacts
clean-build: ## remove build artifacts
rm -fr build/
rm -fr dist/
rm -rf test_project/static test_project/bower_components .cache .pytest_cache
rm -fr .eggs/
rm -rf test_project/splintershots test_project/node_modules test_project/components > /dev/null || true
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +
clean-pyc: ## remove Python file artifacts
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test: ## remove test and coverage artifacts
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
release: clean ## package and upload a release
python setup.py sdist upload
python setup.py bdist_wheel upload
assets:
cd test_project && yarn
cd test_project && python manage.py collectstatic --noinput
tests: assets
tox -p 2
# target: setup-lo0
# Configures loopback interafce so the Selenium Docker container can access
# Django's LiveServer. Used on macOS.
setup-lo0:
sudo ifconfig lo0 alias 192.168.13.37
install-yarn-packages:
cd test_project && yarn
travis-tests: install-yarn-packages
pip install tox && tox -e py36
update-messages:
cd multiseek && django-admin.py makemessages -d django -d djangojs -a