-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 756 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 756 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
TEST_PATH=./
PYTHON3_PATH=${HOME}/miniconda3/bin/python
all: git
venv: venv/bin/activate
venv/bin/activate: requirements.txt
@- test -d venv || virtualenv -p ${PYTHON3_PATH} venv
@- . venv/bin/activate; pip install -Ur requirements.txt
@- touch venv/bin/activate
test: venv
@echo "Running unit tests."
@echo ""
@- . venv/bin/activate; nosetests -s --with-coverage ${TEST_PATH}; deactivate
@echo ""
clean:
@echo "Cleaning *.pyc, *.DS_Store, and other junk files..."
@- find . -name '*.pyc' -exec rm -f {} +
@- find . -name '*.pyo' -exec rm -f {} +
@- find . -name '__pycache__' -exec rm -rf {} +
@echo ""
git: clean
@echo "Syncing with repository"
@echo ""
@- git add --all .
@- git commit -am "Autocommit"
@- git push origin master