forked from sclorg/rpm-list-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (56 loc) · 1.24 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
PYTHON=python3
PIP=pip3
VENV_DIR=venv
default: test-all
.PHONY: default
clean:
$(PYTHON) setup.py clean
rm -rf build dist tmp venv
.PHONY: clean
install:
$(PIP) install --user .
.PHONY: install
uninstall:
$(PIP) uninstall rpmlb
.PHONY: uninstall
# It takes about 7 mins.
test-all: venv-install-dev venv-test tox venv-integration-test
.PHONY: test-all
venv-install: venv-uninstall
virtualenv --python="$(PYTHON)" "`pwd`/$(VENV_DIR)"; \
source $(VENV_DIR)/bin/activate; \
pip install .; \
deactivate
.PHONY: venv-install
venv-install-dev: venv-uninstall
virtualenv --python="$(PYTHON)" "`pwd`/$(VENV_DIR)"; \
source $(VENV_DIR)/bin/activate; \
pip install -r requirements.txt; \
pip install -r test-requirements.txt; \
pip install --editable .; \
deactivate
.PHONY: venv-install-dev
venv-uninstall:
rm -rf "`pwd`/$(VENV_DIR)"
.PHONY: venv-uninstall
venv-list:
source $(VENV_DIR)/bin/activate; \
pip list; \
deactivate
.PHONY: venv-list
venv-test:
source $(VENV_DIR)/bin/activate; \
$(PYTHON) -m pytest tests; \
deactivate
.PHONY: venv-test
venv-integration-test:
source $(VENV_DIR)/bin/activate; \
tests/integration/run.sh; \
deactivate
.PHONY: venv-test-integration
tox-notest:
tox --notest
.PHONY: tox-notest
tox:
tox
.PHONY: tox