-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 731 Bytes
/
Makefile
File metadata and controls
36 lines (24 loc) · 731 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
VENV = .venv
PIP = $(VENV)/bin/pip
PYTHON = $(VENV)/bin/python3
venv: setup.py
test -d $(VENV) || python3 -m venv $(VENV)
install: venv
. $(VENV)/bin/activate
$(PYTHON) -m pip install --upgrade pip
$(PYTHON) -m pip install -e .
install_dev: venv
. $(VENV)/bin/activate
$(PYTHON) -m pip install --upgrade pip
$(PYTHON) -m pip install -e .[dev]
run_test: install_dev
. $(VENV)/bin/activate
$(PYTHON) -m pytest
clean:
rm -rf .pytest_cache
rm -rf flaky_tests_detection/__pycache__
rm -rf flaky_tests_detection.egg-info
rm -rf tests/__pycache__
rm -rf $(VENV)
publish: install_dev
. $(VENV)/bin/activate && $(VENV)/bin/semantic-release publish -D version_variable=flaky_tests_detection/__init__.py:__version__