-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 695 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 695 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
32
33
34
35
36
37
38
SYSTEM_PYTHON=python3.7
VENV:=venv
PIP:=$(VENV)/bin/pip
PYTHON:=$(VENV)/bin/python3
PYTEST:=$(VENV)/bin/pytest
$(VENV):
$(SYSTEM_PYTHON) -m venv venv
.PHONY: pip-install-dep
pip-install-dep: $(VENV)
$(PIP) install --upgrade pip
$(PIP) install -r requirements.txt
.PHONY: pip-install-test
pip-install-test: $(VENV)
$(PIP) install -r requirements-test.txt
.PHONY: pip-install
pip-install: pip-install-dep pip-install-test
.PHONY: test-unit
test-unit:
$(PYTEST) tests/unit
.PHONY: test-apiclientnodb
test-apiclientnodb:
$(PYTEST) tests/apiclientnodb
.PHONY: test-apiclientnodb
test-apiclientnodb:
$(PYTEST) tests/apiclientdb
.PHONY: test-all
test-all: test-unit test-apiclientnodb