File tree Expand file tree Collapse file tree 5 files changed +41
-7
lines changed Expand file tree Collapse file tree 5 files changed +41
-7
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,10 @@ jobs:
21
21
tarantool-version : ${{ matrix.tarantool-version }}
22
22
23
23
- name : Install dependencies
24
- run : |
25
- tarantoolctl rocks install luatest 0.5.5
26
- tarantoolctl rocks install luacheck 0.26.0
27
- tarantoolctl rocks make
24
+ run : make .rocks
28
25
29
26
- name : Run linter
30
- run : .rocks/bin/luacheck .
27
+ run : make lint
31
28
32
29
- name : Run tests
33
- run : .rocks/bin/luatest -v
30
+ run : make test
Original file line number Diff line number Diff line change 6
6
.doctrees
7
7
__pycache__
8
8
/dev
9
- /tmp
9
+ /tmp /*
10
+ ! /tmp /.keep
10
11
doc
11
12
release
12
13
release-doc
@@ -28,3 +29,4 @@ luacov.*.out*
28
29
* .mo
29
30
.history
30
31
.vscode
32
+ * .rock
Original file line number Diff line number Diff line change
1
+ statsfile = 'tmp/luacov.stats.out'
2
+ reportfile = 'tmp/luacov.report.out'
3
+ exclude = {
4
+ '/test/',
5
+ '/tmp/',
6
+ }
Original file line number Diff line number Diff line change
1
+ SHELL := /bin/bash
2
+
3
+ .PHONY : .rocks
4
+ .rocks : graphql-scm-1.rockspec Makefile
5
+ tarantoolctl rocks make
6
+ tarantoolctl rocks install luatest 0.5.5
7
+ tarantoolctl rocks install luacov 0.13.0
8
+ tarantoolctl rocks install luacheck 0.26.0
9
+
10
+ .PHONY : lint
11
+ lint :
12
+ if [ ! -d " .rocks" ]; then make .rocks; fi
13
+ .rocks/bin/luacheck .
14
+
15
+ .PHONY : test
16
+ test :
17
+ if [ ! -d " .rocks" ]; then make .rocks; fi
18
+ rm -f tmp/luacov*
19
+ .rocks/bin/luatest --verbose --coverage --shuffle group
20
+ .rocks/bin/luacov . && grep -A999 ' ^Summary' tmp/luacov.report.out
21
+
22
+ .PHONY : clean
23
+ clean :
24
+ rm -rf .rocks
25
+
26
+ .PHONY : build
27
+ build :
28
+ if [ ! -d " .rocks" ]; then make .rocks; fi
29
+ tarantoolctl rocks pack graphql scm-1
You can’t perform that action at this time.
0 commit comments