-
-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy path.justfile
More file actions
66 lines (50 loc) · 1.65 KB
/
Copy path.justfile
File metadata and controls
66 lines (50 loc) · 1.65 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
open := if os() == "macos" { "open" } else if os() == "windows" { "start" } else { "xdg-open" }
#@default:
# just --choose
# build without tests
build *args:
./gradlew spotlessApply installDist -x test {{args}}
format:
./gradlew spotlessApply
# run tests
test *args:
./gradlew test {{args}}
preitest := if path_exists('build/install/jbang/bin') != 'true' {
'./gradlew spotlessApply installDist -x test'
} else {
''
}
# open test report
opentest:
{{open}} build/reports/tests/test/index.html
# run integration tests
itest *args:
{{preitest}}
./gradlew integrationTest {{args}}
# open shell with latest build in path
jbang *args:
PATH="build/install/jbang/bin:$PATH" jbang {{args}}
# open interactive shell with jbang completion (zsh, bash, or fish)
[no-exit-message]
shell sh="zsh":
{{preitest}}
@"{{justfile_directory()}}/misc/dev-shell.sh" "{{sh}}" "{{justfile_directory()}}/build/install/jbang/bin"
jbangdebug *args:
JBANG_JAVA_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=1044 PATH="build/install/jbang/bin:$PATH" jbang {{args}}
java *args:
java {{args}}
# open integeration test report
openitest:
{{open}} build/reports/allure-report/allureReport/index.html
# tag minor
tagminor:
git commit --allow-empty -m "[minor] release"
./gradlew tag
tagpatch:
git commit --allow-empty -m "[patch] release"
./gradlew tag
itestreport *args: # todo: should not be needed to clean
-./gradlew integrationTest {{args}}
./gradlew allureReport --clean
dry-run-full-release:
JRELEASER_PROJECT_VERSION=`./gradlew -q printVersion` jbang jreleaser@jreleaser full-release --dry-run