-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
49 lines (40 loc) · 1.09 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
TTCTL := tt
ifeq (,$(shell which tt 2>/dev/null))
$(error tt is not found)
endif
.PHONY: rpm
rpm:
OS=el DIST=7 packpack/packpack
.rocks: metrics-scm-1.rockspec metrics/*.lua metrics/*/*.lua
$(TTCTL) rocks make
$(TTCTL) rocks install luatest 1.0.1
$(TTCTL) rocks install luacov 0.13.0
$(TTCTL) rocks install luacheck 0.26.0
if [ -n '$(CARTRIDGE_VERSION)' ]; then \
$(TTCTL) rocks install cartridge $(CARTRIDGE_VERSION); \
fi
.PHONY: lint
lint: .rocks
.rocks/bin/luacheck .
.PHONY: test
test: .rocks
.rocks/bin/luatest -v -c
.PHONY: test_with_coverage_report
test_with_coverage_report: .rocks
rm -f tmp/luacov.*.out*
.rocks/bin/luatest --coverage -v -c --shuffle group --repeat 3
.rocks/bin/luacov .
echo
grep -A999 '^Summary' tmp/luacov.report.out
.PHONY: test_promtool
test_promtool: .rocks
tarantool test/promtool.lua
cat prometheus-input | promtool check metrics
rm prometheus-input
update-pot:
sphinx-build doc/monitoring doc/locale/en/ -c doc/ -d doc/.doctrees -b gettext
update-po:
sphinx-intl update -p doc/locale/en/ -d doc/locale/ -l "ru"
.PHONY: clean
clean:
rm -rf .rocks