File: Justfile

package info (click to toggle)
lua-busted 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 820 kB
  • sloc: sh: 198; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 669 bytes parent folder | download
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
git := require('git')
just := just_executable()
luarocks := require('luarocks')
stylua := require('stylua')
zsh := "zsh"
[private]
_zsh := require(zsh)

set script-interpreter := [zsh, '+o', 'nomatch', '-eu']
set shell := [zsh, '+o', 'nomatch', '-ecu']
set positional-arguments := true
set unstable := true

local_tree := "--tree lua_modules"

[default]
[private]
@list:
    {{ just }} --list --unsorted

[private]
_setup:
    {{ luarocks }} {{ local_tree }} make

[script]
check: _setup
    eval $({{ luarocks }} {{ local_tree }} path)
    busted -c -v .

restyle:
    {{ git }} ls-files '*.lua' '*.rockspec' .luacheckrc .luacov | xargs {{ stylua }} --respect-ignores