File tree Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Expand file tree Collapse file tree 2 files changed +38
-3
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,24 @@ coveralls: $(LUACOV_STATS)
51
51
echo " Send code coverage data to the coveralls.io service"
52
52
luacov-coveralls --include ^roles --verbose --repo-token ${GITHUB_TOKEN}
53
53
54
- deps :
54
+ deps-test :
55
55
tt rocks install luatest 1.0.1
56
- tt rocks install luacheck 0.26.0
56
+
57
+ deps-coverage : deps-test
57
58
tt rocks install luacov 0.13.0-1
58
59
tt rocks install luacov-coveralls 0.2.3-1 --server=http://luarocks.org
60
+
61
+ deps-lint :
62
+ tt rocks install luacheck 0.26.0
63
+
64
+ deps :
65
+ ifeq ($(depname ) , test)
66
+ $(MAKE) deps-test
67
+ else ifeq ($(depname), coverage)
68
+ $(MAKE) deps-coverage
69
+ else ifeq ($(depname), lint)
70
+ $(MAKE) deps-lint
71
+ else
72
+ $(MAKE) deps-coverage deps-lint
73
+ endif
59
74
tt rocks make
Original file line number Diff line number Diff line change @@ -206,12 +206,32 @@ git clone https://github.com/tarantool/metrics-export-role
206
206
cd metrics-export-role
207
207
` ` `
208
208
209
- After that you need to install dependencies (`tt` is required) :
209
+ After that you need to install dependencies (`tt` is required).
210
+ To do it, run :
210
211
211
212
` ` ` shell
212
213
make deps
213
214
` ` `
214
215
216
+ It's possible to install requirements only for running tests
217
+ or linter check. To install only tests requirements, run :
218
+
219
+ ` ` ` shell
220
+ make deps depname=test
221
+ ` ` `
222
+
223
+ To install tests with coverage requirements, run :
224
+
225
+ ` ` ` shell
226
+ make deps depname=coverage
227
+ ` ` `
228
+
229
+ To install linter checks, run :
230
+
231
+ ` ` ` shell
232
+ make deps depname=lint
233
+ ` ` `
234
+
215
235
At this point you could run tests (`tarantool` 3 is required) :
216
236
217
237
` ` ` shell
You can’t perform that action at this time.
0 commit comments