-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (38 loc) · 874 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
46
AUTHOR := thombashi
PACKAGE := pytest-md-report
BUILD_WORK_DIR := _work
PKG_BUILD_DIR := $(BUILD_WORK_DIR)/$(PACKAGE)
PYTHON := python3
.PHONY: build
build:
@make clean
@tox -e build
ls -lh dist/*
.PHONY: build-remote
build-remote:
@rm -rf $(BUILD_WORK_DIR)
@mkdir -p $(BUILD_WORK_DIR)
@cd $(BUILD_WORK_DIR) && \
git clone https://github.com/$(AUTHOR)/$(PACKAGE).git --depth 1 && \
cd $(PACKAGE) && \
tox -e build
ls -lh $(PKG_BUILD_DIR)/dist/*
.PHONY: check
check:
@tox -e lint
-travis lint
.PHONY: clean
clean:
rm -rf $(BUILD_WORK_DIR)
@tox -e clean
.PHONY: fmt
fmt:
@tox -e fmt
.PHONY: release
release:
@cd $(PKG_BUILD_DIR) && $(PYTHON) setup.py release --sign --search-dir pytest_md_report
@make clean
.PHONY: setup
setup:
@$(PYTHON) -m pip install -q --disable-pip-version-check --upgrade -e .[test] releasecmd tox
@$(PYTHON) -m pip check