-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (47 loc) · 1.45 KB
/
Makefile
File metadata and controls
58 lines (47 loc) · 1.45 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
#: help - Display callable targets.
.PHONY: help
help:
@echo "Reference card for usual actions in development environment."
@echo "Here are available targets:"
@egrep -o "^#: (.+)" [Mm]akefile | sed 's/#: /* /'
#: venv2 - Build Python2.7 virtual environment
venv2: requirements.txt test.txt
virtualenv -p python2 venv2
venv2/bin/pip install -r test.txt
touch venv2
#: venv3 - Build Python3 virtual environment
venv3: requirements.txt test.txt
virtualenv -p python3 venv3
venv3/bin/pip install -r test.txt
touch venv3
#: venv - Build Python2.7 & Python3 virtual enviroments
venv: venv2 venv3
#: test2 - Run unit tests for Python2.7
.PHONY: test2
test2: venv2
PYTHONPATH=. venv2/bin/pytest veristack
#: test3 - Run unit tests for Python3
.PHONY: test3
test3: venv3
PYTHONPATH=. venv3/bin/pytest veristack
#: test - Run unit tests for Python2.7 & Python3
.PHONY: test
test: test2 test3
#: lint - Run code analysis
.PHONY: lint
lint: venv3
venv3/bin/prospector --profile=prospector --die-on-tool-error
#: check - Alias for lint
.PHONY: check
check: lint
#: clean - Restore working directory to pristine state
.PHONY: clean
clean:
rm -rf build dist *.egg-info venv2 venv3 htmlcov
#: setup-ubuntu - Install prereqs
.PHONY: setup-ubuntu
setup-ubuntu:
sudo apt-get install -y python-virtualenv libmysqlclient-dev libxml2-dev libxslt1-dev build-essential python-dev python3-dev
#: ci - Run continuous integration tests
.PHONY: ci
ci: setup-ubuntu clean test lint