forked from antismash/antismash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (38 loc) · 1.64 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
omit = --omit '*/external/*'
coverage = coverage run $(omit) --source antismash -m pytest
integration_flags = --override-ini=python_files=integration_*.py
integration_coverage = .coverage_integration
sanity_run = echo "sanity TTA run" && rm -rf nisin && ./run_antismash.py --minimal antismash/test/integration/data/nisin.gbk
unit:
$(sanity_run)
echo "simple reuse test" && ./run_antismash.py --reuse-results nisin/nisin.json
pytest --durations=3 antismash
integration: clean
python -m pytest --durations=3 antismash $(integration_flags)
clean:
rm -f antismash/detection/hmm_detection/data/bgc_seeds.hmm*
rm -f antismash/modules/clusterblast/test/data/*/*.dmnd
rm -f antismash/outputs/html/css/*.css
find antismash -name "*.scaler.pkl" -o -name "*.classifier.pkl" -exec rm {} +
find . -name "*.h3?" -exec rm {} +
find . -name '*.pyc' | xargs rm -f
find . -name '__pycache__' | xargs rm -rf
find . -name '*.dmnd' | grep -v test | xargs rm -f
squeakyclean: clean
find . -name "*.tar.*" -exec rm {} +
bash -c 'for d in $$(find . -maxdepth 2 -name "index.html"); do DIR=$$(dirname $$d); rm -r $$DIR; done'
cover: coverage
combined-coverage: coverage
COVERAGE_FILE=$(integration_coverage) $(coverage) $(integration_flags)
coverage combine .coverage $(integration_coverage)
coverage html -d cover
coverage report
coverage:
$(sanity_run)
rm -rf cover .coverage $(integration_coverage)
coverage run $(omit),'*integration_*.py' --source antismash -m pytest antismash
coverage html -d cover
coverage report
docker: squeakyclean
docker build -t antismash/antismash-dev .
.PHONY: unit integration clean squeakyclean cover coverage combined-coverage docker