-
Notifications
You must be signed in to change notification settings - Fork 240
/
Makefile
118 lines (99 loc) · 4.1 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.PHONY: build
MAKEFLAGS += --silent
default: run-tests
PY_DIR=$(CURDIR)/../bin
common-tests:
cd $(CURDIR)/code/zato-common && make run-tests
cy-tests:
cd $(CURDIR)/code/zato-cy && make run-tests
pylint:
cd $(CURDIR)/code/zato-agent && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-broker && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-cli && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-client && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-common && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-distlock && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-cy && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-hl7 && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-lib && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-scheduler && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-server && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-sso && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-testing && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-web-admin && $(MAKE) pylint || true
cd $(CURDIR)/code/zato-zmq && $(MAKE) pylint || true
server-tests:
cd $(CURDIR)/code/zato-server && make run-tests
cli-tests:
cd $(CURDIR)/code/zato-cli && make run-tests
sso-tests:
cd $(CURDIR)/code/zato-sso && make run-tests
flake8:
cd $(CURDIR)/code/zato-agent && $(MAKE) flake8
cd $(CURDIR)/code/zato-broker && $(MAKE) flake8
cd $(CURDIR)/code/zato-cli && $(MAKE) flake8
cd $(CURDIR)/code/zato-client && $(MAKE) flake8
cd $(CURDIR)/code/zato-common && $(MAKE) flake8
cd $(CURDIR)/code/zato-distlock && $(MAKE) flake8
cd $(CURDIR)/code/zato-cy && $(MAKE) flake8
cd $(CURDIR)/code/zato-hl7 && $(MAKE) flake8
cd $(CURDIR)/code/zato-lib && $(MAKE) flake8
cd $(CURDIR)/code/zato-scheduler && $(MAKE) flake8
cd $(CURDIR)/code/zato-server && $(MAKE) flake8
cd $(CURDIR)/code/zato-sso && $(MAKE) flake8
cd $(CURDIR)/code/zato-testing && $(MAKE) flake8
cd $(CURDIR)/code/zato-web-admin && $(MAKE) flake8
cd $(CURDIR)/code/zato-zmq && $(MAKE) flake8
$(CURDIR)/code/bin/flake8 --config=$(CURDIR)/code/tox.ini $(CURDIR)/code/util
echo "Flake8 checks OK"
static-check:
cd $(CURDIR)/code/zato-agent && $(MAKE) static-check
cd $(CURDIR)/code/zato-broker && $(MAKE) static-check
cd $(CURDIR)/code/zato-cli && $(MAKE) static-check
cd $(CURDIR)/code/zato-client && $(MAKE) static-check
cd $(CURDIR)/code/zato-common && $(MAKE) static-check
cd $(CURDIR)/code/zato-distlock && $(MAKE) static-check
cd $(CURDIR)/code/zato-cy && $(MAKE) static-check
cd $(CURDIR)/code/zato-hl7 && $(MAKE) static-check
cd $(CURDIR)/code/zato-lib && $(MAKE) static-check
cd $(CURDIR)/code/zato-scheduler && $(MAKE) static-check
cd $(CURDIR)/code/zato-server && $(MAKE) static-check
cd $(CURDIR)/code/zato-sso && $(MAKE) static-check
cd $(CURDIR)/code/zato-testing && $(MAKE) static-check
cd $(CURDIR)/code/zato-web-admin && $(MAKE) static-check
cd $(CURDIR)/code/zato-zmq && $(MAKE) static-check
echo "Static checks OK"
$(MAKE) type-check
type-check:
cd $(CURDIR)/code/zato-common && $(MAKE) type-check
cd $(CURDIR)/code/zato-server && $(MAKE) type-check
echo "Type checks OK"
type-check-pubsub:
cd $(CURDIR)/code/zato-server && $(MAKE) pyright-pubsub
echo "Type checks OK"
mypy:
cd $(CURDIR)/code/zato-common && $(MAKE) mypy
cd $(CURDIR)/code/zato-server && $(MAKE) mypy
echo "Mypy checks OK"
web-admin-tests:
cd $(CURDIR)/code/zato-web-admin && make run-tests
scheduler-tests:
cd $(CURDIR)/code/zato-scheduler && make run-tests
install-qa-reqs:
$(CURDIR)/code/bin/pip install --upgrade -r $(CURDIR)/code/qa-requirements.txt
npx -y playwright install
mkdir -p $(CURDIR)/code/eggs/requests/ || true
cp -v $(CURDIR)/code/patches/requests/* $(CURDIR)/code/eggs/requests/
functional-tests:
$(MAKE) web-admin-tests
$(MAKE) common-tests
$(MAKE) server-tests
$(MAKE) cli-tests
$(MAKE) scheduler-tests
$(MAKE) cy-tests
@if [ "$(ZATO_TEST_SSO)" = "true" ]; then $(MAKE) sso-tests; fi
run-tests:
$(MAKE) install-qa-reqs
$(CURDIR)/code/bin/playwright install
$(MAKE) static-check
$(MAKE) functional-tests