forked from arrow-py/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 959 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
40
41
42
43
44
45
46
.PHONY: auto test docs clean
auto: build27
build27:
virtualenv local --python=python2.7
local/bin/pip install -r requirements.txt
local/bin/pre-commit install
build35:
virtualenv local --python=python3.5
local/bin/pip install -r requirements.txt
local/bin/pre-commit install
build36:
virtualenv local --python=python3.6
local/bin/pip install -r requirements.txt
local/bin/pre-commit install
build37:
virtualenv local --python=python3.7
local/bin/pip install -r requirements.txt
local/bin/pre-commit install
build38:
virtualenv local --python=python3.8
local/bin/pip install -r requirements.txt
local/bin/pre-commit install
test:
rm -f .coverage
. local/bin/activate && nosetests
lint:
local/bin/pre-commit run --all-files
lint-ci:
local/bin/pre-commit run --all-files --show-diff-on-failure
docs:
touch docs/index.rst
. local/bin/activate && cd docs; make html
clean:
rm -rf local ./**/__pycache__
rm -f ./**/*.pyc .coverage