forked from v3io/manof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (34 loc) · 839 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
VENV_PYTHON = ./venv/bin/python
.PHONY: all
all: venv lint test
@echo Done.
.PHONY: lint
lint: venv fmt-check
.PHONY: fmt
fmt:
@echo "Running black fmt..."
$(VENV_PYTHON) -m black --skip-string-normalization --exclude='.*venv.*' .
.PHONY: fmt-check
fmt-check:
@echo "Running black fmt check..."
$(VENV_PYTHON) -m black --skip-string-normalization --check --diff .
.PHONY: test
test: test-unit test-integ
@echo Finished running Tests
.PHONY: test-unit
test-unit: venv
$(VENV_PYTHON) -m nose tests/unit
.PHONY: test-integ
test-integ: venv
$(VENV_PYTHON) -m nose tests/integration/cases/
.PHONY: install
install: venv
@echo Installed
.PHONY: install-ci
install-ci: install-venv install
venv:
python ./install --dev
.PHONY: install-venv
install-venv:
python -m pip install --upgrade pip
python -m pip install virtualenv