-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 879 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
.PHONY: *
all: clean deps-sync deps-check lint test build
deps-sync:
pipenv sync --dev --bare
deps-check:
pipenv check
deps-update:
pipenv --rm
pipenv update --dev
lint:
pipenv run flake8
pipenv run black --check --diff --verbose .
test:
pipenv run pytest -v --color=yes --cov=asgard
build: build-binary
build-binary:
pipenv run pyinstaller asgard.spec
build-docker:
docker build . -t claudeleveille/asgard:latest
clean:
git clean -dfx -e .vscode/ -e .idea/
fmt:
pipenv run black --verbose .
release: clean build-binary
if [ "$$(git branch --show-current |tr -d '\n')" = "master" ]; then \
echo "__version__ = \"$$(./dist/asgard)\"" > asgard/_version.py; \
git add asgard/_version.py; \
./dist/asgard --commit --tag; \
git push origin master; \
git push --tags origin; \
else \
echo "Not releasing because current branch isn't master"; \
fi