-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
26 lines (19 loc) · 1.06 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
tests: clean ## Clean and Make unit tests
python3 -m nose -v tests --with-coverage --cover-erase --cover-package=`find hedgemedata -name "*.py" | sed "s=\./==g" | sed "s=/=.=g" | sed "s/\.py//g" | tr '\n' ',' | rev | cut -c2- | rev`
test: clean ## run the tests for travis CI
@ python3 -m nose -v tests --with-coverage --cover-erase --cover-package=`find hedgemedata -name "*.py" | sed "s=\./==g" | sed "s=/=.=g" | sed "s/\.py//g" | tr '\n' ',' | rev | cut -c2- | rev`
clean: ## clean the repository
find . -name "__pycache__" | xargs rm -rf
find . -name "*.pyc" | xargs rm -rf
rm -rf .coverage cover htmlcov logs build dist *.egg-info
build: ## build the repository
python3 setup.py build
install: ## install to site-packages
python3 setup.py install
# Thanks to Francoise at marmelab.com for this
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
print-%:
@echo '$*=$($*)'
.PHONY: clean run test tests help annotate annotate_l docs run build js