forked from xmlrunner/unittest-xml-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (19 loc) · 686 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
build/tox/bin:
python3 -m venv build/tox
build/tox/bin/pip install tox
build/publish/bin:
python3 -m venv build/publish
build/publish/bin/pip install wheel twine
checkversion:
git log -1 --oneline | grep -q "Bump version" || (echo "DID NOT DO VERSION BUMP"; exit 1)
git show-ref --tags | grep -q $$(git log -1 --pretty=%H) || (echo "DID NOT TAG VERSION"; exit 1)
dist: checkversion build/publish/bin
build/publish/bin/python setup.py sdist
build/publish/bin/python setup.py bdist_wheel
publish: dist/ build/publish/bin
build/publish/bin/twine upload dist/*
test: build/tox/bin
build/tox/bin/tox
clean:
rm -rf build/ dist/
.PHONY: checkversion dist publish clean test