-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (31 loc) · 955 Bytes
/
Makefile
File metadata and controls
48 lines (31 loc) · 955 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
37
38
39
40
41
42
43
44
45
46
47
48
.PHONY: pb
PYLINT = mlp/venv/bin/pylint
GET_VERSION=./lib/get-version
INCREMENT_VERSION=./lib/inc-version
PROJECT=catalog
CURRENT_VER ?= $(shell $(GET_VERSION) $(PROJECT)-)
NEXT_VER ?= $(shell $(INCREMENT_VERSION) $(CURRENT_VER))
pylint:
@PYLINT mlp --ignore=venv,notebooks,proto --rcfile=mlp/.pylintrc
specs:
@cd mlp && source venv/bin/activate && ./manage.py specs
demo:
@cd mlp && source venv/bin/activate && ./manage.py demo && ./manage.py runserver
dev:
lib/deploy-dev
screenshots:
mlp/venv/bin/python mlp/lib/screenshot.py doc
ready-to-test:
echo $(CURRENT_VER)
git tag -a -m "Release to 'Ready to test'" $(PROJECT)-$(NEXT_VER)
git push --tags
lib/deploy-qa $(PROJECT)-$(NEXT_VER)
release:
echo "$(CURRENT_VER) - $(NEXT_VER)"
lib/release-client $(NEXT_VER)
lib/release-server-docker $(NEXT_VER)
git tag -a -m "Release $(NEXT_VER)" $(PROJECT)-$(NEXT_VER)
git push --tags
pb:
$(MAKE) -C specs pb
$(MAKE) -C server pb