forked from flypenguin/okta-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (47 loc) · 1.02 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
all: checkclean clean build
.PHONY: pypi
pypi: clean build upload
.PHONY: upload
upload:
twine upload dist/*
.PHONY: build
build:
rm -rf build/ dist/
python setup.py bdist_wheel
.PHONY: clean
clean:
find . -type d -name __pycache__ | xargs rm -rf
find . -type f -name "*.pyc" -delete
rm -rf dist/ build/
rm -rf *.egg-info
rm -rf ignoreme build dist
rm -rf tmp
.PHONY: checkclean
checkclean:
echo -e "\nCHECK IF BUILD DIR IS CLEAN ...\n"
git diff-index --quiet HEAD --
.PHONY: bump_major
bump_major:
bumpversion major
.PHONY: bump_minor
bump_minor:
bumpversion minor
.PHONY: bump_patch
bump_patch:
bumpversion patch
.PHONY: push
push:
git push
git push --tags
.PHONY: major
major: clean checkclean bump_major build push upload
.PHONY: minor
minor: clean checkclean bump_minor build push upload
.PHONY: patch
patch: clean checkclean bump_patch build push upload
dockertest:
@IMG="temp/$$(basename $$(pwd)):$$(date +%s)" ; \
echo $$IMG ; \
docker build . --no-cache --tag $$IMG ; \
docker run $$IMG
.PHONY: test