forked from lunarmodules/busted
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
44 lines (37 loc) · 1.13 KB
/
Justfile
File metadata and controls
44 lines (37 loc) · 1.13 KB
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
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
# release
# - pass tests
# - edit action and core with version
# - generate new rockspec, like old but with any diffs from scm
# - export SEMVER=v2.x.y
# - git commit -m "chore: Release v$SEMVER"
# - git cliff --unreleased >> notes
# - git tag v$SEMVER -a (edit in notes)
# - g push upstream master --follow-tags
# - luarocks make --pack-binary-rock rockspecs/busted-$SEMVER-1.rockspec
# - luarocks pack !$
# - gh release (from tag commit plus pings)