generated from asdf-vm/asdf-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
67 lines (60 loc) · 2.36 KB
/
Makefile.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[config]
skip_core_tasks = true
[tasks.lint]
category = "Tools"
description = "Run linters without changes"
script = [
"./scripts/lint.bash",
]
[tasks.format]
category = "Tools"
description = "Run formatters with changes"
script = [
"./scripts/format.bash",
]
[tasks.check_no_git_diff]
category = "Tools"
description = 'asdf built-in "plugin test" requires git managed codes. This prevents unexpected run'
script = [
'(git add --intent-to-add . && git diff --exit-code) || (echo "You should commit all diff before running tests"; exit 1)',
]
[tasks.test]
category = "Tools"
description = 'Run tests with `asdf plugin test`'
dependencies = [
"check_no_git_diff",
]
script = [
'asdf plugin test cargo-make ./.git --asdf-plugin-gitref "$(git rev-parse --abbrev-ref HEAD)" "cargo-make make --version"',
]
[tasks.check]
category = "Tools"
description = 'Should pass before merging PR'
dependencies = [
"lint",
"test",
]
[tasks.setup]
category = "Tools"
description = 'Install dependencies'
# Specify git-url even if they are registered in https://github.com/asdf-vm/asdf-plugins instead of using short-name.
# To consider use-case of enabling `disable_plugin_short_name_repository=yes`
script = [
# https://github.com/asdf-vm/asdf-plugins/blob/6498384c22a29602d065d3db681b8f32f7e4295b/plugins/cargo-make#L1
'(asdf plugin-list | grep cargo-make) || asdf plugin-add cargo-make https://github.com/kachick/asdf-cargo-make.git',
# https://github.com/asdf-vm/asdf-plugins/blob/6498384c22a29602d065d3db681b8f32f7e4295b/plugins/dprint#L1
'(asdf plugin-list | grep dprint) || asdf plugin-add dprint https://github.com/asdf-community/asdf-dprint.git',
# https://github.com/asdf-vm/asdf-plugins/blob/6498384c22a29602d065d3db681b8f32f7e4295b/plugins/shellcheck#L1
'(asdf plugin-list | grep shellcheck) || asdf plugin-add shellcheck https://github.com/luizm/asdf-shellcheck.git',
# https://github.com/asdf-vm/asdf-plugins/blob/6498384c22a29602d065d3db681b8f32f7e4295b/plugins/shfmt#L1
'(asdf plugin-list | grep shfmt) || asdf plugin-add shfmt https://github.com/luizm/asdf-shfmt.git',
# https://github.com/asdf-vm/asdf-plugins/pull/858
'(asdf plugin-list | grep typos) || asdf plugin-add typos https://github.com/aschiavon91/asdf-typos.git',
'asdf install',
]
[tasks.help]
category = "Tools"
description = 'Might help you - (This one)'
script = [
'makers --list-category-steps Tools',
]