-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathMakefile
64 lines (48 loc) · 1.47 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
62
63
64
SHELL=/bin/bash -e
help:
@echo "- make clean Clean"
@echo "- make tag Create version tag"
@echo "- make test Run tests"
@echo "- make coverage Run tests coverage"
@echo "- make lint Run lint"
@echo "- make npm-build Run npm build"
@echo "- make npm-watch Run npm build when files change"
@echo "Development image:"
@echo "- make dev-image Build dev image"
@echo "- make dev-shell Start a shell in the dev environment"
@echo "- make standalone Run an all-in-one copy of Airflow"
@echo "- make webserver Start a Airflow webserver instance"
@echo "- make scheduler Start a scheduler instance"
lint:
flake8 airflow_code_editor tests
isort:
isort --profile black airflow_code_editor tests
black: isort
black -S airflow_code_editor tests
tag:
@grep -q "[$$(cat airflow_code_editor/VERSION)]" changelog.txt || (echo "Missing changelog !!! Update changelog.txt"; exit 1)
@git tag -a "v$$(cat airflow_code_editor/VERSION)" -m "version v$$(cat airflow_code_editor/VERSION)"
dev-image:
$(MAKE) -C docker dev-image
dev-shell:
$(MAKE) -C docker dev-shell
webserver:
$(MAKE) -C docker webserver
scheduler:
$(MAKE) -C docker scheduler
standalone:
$(MAKE) -C docker standalone
build: clean
python3 setup.py bdist_wheel
python3 setup.py sdist bdist_wheel
clean:
-rm -rf build dist
-rm -rf *.egg-info
test:
$(MAKE) -C docker test
coverage:
$(MAKE) -C docker coverage
npm-build:
@npm run build
npm-watch:
@npm run watch