-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
justfile
59 lines (45 loc) · 1.37 KB
/
justfile
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
set positional-arguments
set shell := ["bash", "-cue"]
root_dir := justfile_directory()
clean:
cd "{{root_dir}}" && \
githooks/scripts/clean.sh
build *args:
cd "{{root_dir}}" && \
githooks/scripts/build.sh "$@"
build-nix *args:
cd "{{root_dir}}" && \
nix build -L "./nix#default" -o ./nix/result {{args}}
doc *args:
cd "{{root_dir}}" && \
githooks/scripts/build-doc.sh "$@"
list-tests:
cd "{{root_dir}}/tests/steps" && \
readarray -t files < <(find . -name "*.sh" -name "step-*" | sort) && \
for f in "${files[@]}"; do \
printf " - %s: %s\n" "$f" "$(head -3 "$f" | tail -1)"; \
done
test-user *args:
cd "{{root_dir}}" && \
tests/test-alpine-user.sh "$@"
test *args:
cd "{{root_dir}}" && \
tests/test-alpine.sh "$@"
coverage *args:
cd "{{root_dir}}" && \
COVERALLS_TOKEN=non-existing tests/test-coverage.sh "$@"
lint fix="false":
cd "{{root_dir}}" && \
GH_FIX="{{fix}}" tests/test-lint.sh || \
echo "Run 'just lint-fix' to fix the files."
lint-fix: (lint "true")
unittests:
cd "{{root_dir}}" && \
tests/test-unittests.sh
release-test *args:
cd "{{root_dir}}/githooks" && \
GORELEASER_CURRENT_TAG=v9.9.9 \
goreleaser release --snapshot --clean --skip=sign --skip=publish --skip=validate "$@"
release version update-info="":
cd "{{root_dir}}" && \
scripts/release.sh "{{version}}" "{{update-info}}"