-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 724 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 724 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
ARGS = "$(filter-out $@,$(MAKECMDGOALS))"
help:
@echo "# dollar-ref dev makefile"
install:
@pipenv install
test: clean
@pipenv run pytest --cov=dollar_ref -v --tb=long $(ARGS)
build: clean
@echo "[INFO] installing dev dependencies"
pipenv install --dev
@echo "[INFO] installing the package"
python setup.py install
@echo "[INFO] running tests"
pipenv run pytest --cov=dollar_ref --cov-config=.coveragerc --cov-report=xml:coverage.xml -v --tb=long
clean:
@echo "[INFO] Removing all *.pyc files..."
@find . -name "*.pyc" -delete
# All the below lines are for the purposes of enabling
# to pass the arguments passed at the command invocation
# into the target recepies.
.PHONY: ACTION
ACTION:
%: ACTION
@: