/
justfile
executable file
·91 lines (74 loc) · 2.89 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env just --justfile
prepare:
brew install mingw-w64
brew tap messense/macos-cross-toolchains
brew install x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu
clean:
./gradlew clean
macosX64Test:
./gradlew :cleanMacosX64Test :macosX64Test :jvmTest
leaks -atExit -- build/bin/macosX64/debugTest/test.kexe
macosArm64Test:
./gradlew :cleanMacosArm64Test :macosArm64Test :jvmTest
leaks -atExit -- build/bin/macosArm64/debugTest/test.kexe
linuxX64Test:
./gradlew :cleanLinuxX64Test :linuxX64Test :jvmTest
linuxArm64Test:
./gradlew :cleanLinuxArm64TestBinaries :linuxArm64TestBinaries
mingwX64Test:
./gradlew :cleanMingwX64Test :mingwX64Test :jvmTest
linuxX64TestDocker: linuxX64Test
# ignore the error exit code
-docker run -itd --name linuxX64Test \
-v ./build/bin/linuxX64:/kommand/build/bin/linuxX64 \
-v ./kommand-core/target/x86_64-unknown-linux-gnu/release/kommand-echo:/kommand/kommand-core/target/x86_64-unknown-linux-gnu/release/kommand-echo \
-w /kommand \
-e HTTP_PROXY=host.docker.internal:6152 \
-e HTTPS_PROXY=host.docker.internal:6152 \
-e ALL_PROXY=host.docker.internal:6153 \
--platform linux/amd64 \
-m 256m \
--cpus=1 \
ubuntu \
bash
sleep 1
-docker exec linuxX64Test build/bin/linuxX64/debugTest/test.kexe
docker rm -f linuxX64Test
linuxArm64TestDocker: linuxArm64Test
# ignore the error exit code
-docker run -itd --name linuxArm64Test \
-v ./build/bin/linuxArm64:/kommand/build/bin/linuxArm64 \
-v ./kommand-core/target/aarch64-unknown-linux-gnu/release/kommand-echo:/kommand/kommand-core/target/aarch64-unknown-linux-gnu/release/kommand-echo \
-w /kommand \
-e HTTP_PROXY=host.docker.internal:6152 \
-e HTTPS_PROXY=host.docker.internal:6152 \
-e ALL_PROXY=host.docker.internal:6153 \
--platform linux/arm64 \
-m 256m \
--cpus=1 \
ubuntu \
bash
sleep 1
-docker exec linuxArm64Test build/bin/linuxArm64/debugTest/test.kexe
docker rm -f linuxArm64Test
build:
cd kommand-core && just all
publishToSonatype:
./gradlew publishToSonatype
closeSonatype:
./gradlew findSonatypeStagingRepository closeSonatypeStagingRepository
releaseSonatype:
./gradlew findSonatypeStagingRepository releaseSonatypeStagingRepository
leaks:
./gradlew :cleanMacosX64Test :macosX64Test
leaks -atExit -- build/bin/macosX64/debugTest/test.kexe
macosArm64Leaks:
./gradlew :cleanMacosArm64Test :macosArm64Test
leaks -atExit -- build/bin/macosArm64/debugTest/test.kexe
autoPublish: macosArm64Leaks build publishToSonatype closeSonatype releaseSonatype
teamcity:
#-v <path to logs directory>:/opt/teamcity/logs
docker run --name teamcity-server-instance \
-v ./:/data/teamcity_server/kommand \
-p 8111:8111 \
jetbrains/teamcity-server