Compare commits

...

2 commits

Author SHA1 Message Date
86522d6b3e
Revert "Add JitPack token"
This reverts commit 749334493b.
2025-04-18 17:24:30 -07:00
31e882eb42
Remove test on coverage 2025-04-18 17:02:45 -07:00
6 changed files with 6 additions and 15 deletions

View file

@ -24,7 +24,7 @@ commands:
version: 2.1.10
- run:
name: Download dependencies
command: ./bld -Djitpack.token=$JITPACK_TOKEN download
command: ./bld download
- run:
name: Compile source
command: ./bld compile

View file

@ -41,7 +41,7 @@ jobs:
run: ./bld download
- name: Compile source
run: ./bld -Djitpack.token=${{ secrets.JITPACK_TOKEN }} compile
run: ./bld compile
- name: Run tests
run: ./bld jacoco

View file

@ -19,6 +19,6 @@ before_script:
test:
stage: test
script:
- ./bld -Djitpack.token=$JITPACK_TOKEN download
- ./bld download
- ./bld compile
- ./bld test

View file

@ -15,6 +15,6 @@ pipelines:
- sdk install kotlin
- source "$HOME/.sdkman/bin/sdkman-init.sh"
# Download, compile and test with bld
- ./bld -Djitpack.token=$JITPACK_TOKEN download
- ./bld download
- ./bld compile
- ./bld test

View file

@ -67,7 +67,7 @@ public class MobibotBuild extends Project {
pkg = "net.thauvin.erik.mobibot";
name = "mobibot";
version = version(0, 8, 0, "rc+" +
DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now()));
DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now()));
mainClass = pkg + ".Mobibot";
@ -77,7 +77,7 @@ public class MobibotBuild extends Project {
repositories = List.of(
MAVEN_LOCAL,
MAVEN_CENTRAL,
new Repository("https://jitpack.io").withCredentials(property("jitpack.token"), "."),
new Repository("https://jitpack.io"),
SONATYPE_SNAPSHOTS_LEGACY);
var log4j = version(2, 24, 3);

View file

@ -47,15 +47,6 @@ class ChatGpt2Test : LocalProperties() {
.hasNoCause()
}
@Test
fun testChatOnCoverage() {
if (System.getenv("CI") == null || System.getenv("COVERAGE_JDK") != null) {
assertThat(
ChatGpt2.chat("how do I encode a URL in java?", getProperty(ChatGpt2.API_KEY_PROP), 60)
).contains("URLEncoder")
}
}
@Test
@DisableOnCi
fun testChat() {