forked from codecov/timestring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 1014 Bytes
/
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
.PHONY: watch test
open:
subl --project timestring.sublime-project
deploy: tag upload
tag:
git tag -a v$(shell python -c "import timestring;print timestring.version;") -m ""
git push origin v$(shell python -c "import timestring;print timestring.version;")
upload:
python setup.py sdist upload
compare:
hub compare $(shell git tag | tail -1)...master
test:
. venv/bin/activate; pip uninstall -y timestring
. venv/bin/activate; python setup.py install
. venv/bin/activate; nosetests --rednose --with-cov --cov-config=.coveragerc
test3:
. venv/bin/activate; pip3 uninstall -y timestring
. venv/bin/activate; python3.3 setup.py install
. venv/bin/activate; python3.3 -m tests.tests
venv:
virtualenv venv
. venv/bin/activate; pip install -r requirements.txt
. venv/bin/activate; pip install -r tests/requirements.txt
. venv/bin/activate; python setup.py install
venv3:
. venv/bin/activate; pip3 install -r requirements.txt
. venv/bin/activate; python3.3 setup.py install
watch:
watchr Watch