-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 981 Bytes
/
Makefile
File metadata and controls
46 lines (34 loc) · 981 Bytes
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
clean:
find . -name '__pycache__' -exec rm -fr {} +
rm -rf ./.cache .mypy_cache ./schema/.mypy_cache .coverage
test:
pytest
PROJECT = instark
COVFILE ?= .coverage
mypy:
mypy $(PROJECT)
coverage-application:
export COVERAGE_FILE=$(COVFILE); pytest --cov-branch \
--cov=$(PROJECT)/application tests/application/ \
--cov-report term-missing -x -s -W ignore::DeprecationWarning \
-o cache_dir=/tmp/instark/cache
coverage:
export COVERAGE_FILE=$(COVFILE); pytest --cov-branch \
--cov=$(PROJECT) tests/ --cov-report term-missing -x -s -vv \
-W ignore::DeprecationWarning -o cache_dir=/tmp/instark/cache
serve:
python -m $(PROJECT) serve
serve-dev:
export instark_MODE=DEV; python -m $(PROJECT) serve
deploy:
ansible-playbook -c local -i localhost, setup/deploy.yml
PART ?= patch
version:
bump2version $(PART) $(PROJECT)/__init__.py --tag --commit
dev-deploy:
bin/dev_deploy.sh
update:
git clean -xdf
git reset --hard
git checkout master
git pull --all