-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy path.justfile
48 lines (36 loc) · 961 Bytes
/
.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
open := if os() == "macos" { "open" } else if os() == "windows" { "start" } else { "xdg-open" }
#@default:
# just --choose
# build without tests
build:
./gradlew spotlessApply installDist -x test
format:
./gradlew spotlessApply
# run tests
test:
./gradlew test
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:
{{preitest}}
@cd itests && ./itests.sh
# open shell with latest build in path
jbang *args:
PATH="build/install/jbang/bin:$PATH" jbang {{args}}
# open integeration test report
openitest:
{{open}} build/karate/surefire-reports/karate-summary.html
# tag minor
tagminor:
git commit --allow-empty -m "[minor] release"
./gradlew tag
tagpatch:
git commit --allow-empty -m "[patch] release"
./gradlew tag