Compare commits
2 commits
749334493b
...
86522d6b3e
Author | SHA1 | Date | |
---|---|---|---|
86522d6b3e | |||
31e882eb42 |
6 changed files with 6 additions and 15 deletions
|
@ -24,7 +24,7 @@ commands:
|
||||||
version: 2.1.10
|
version: 2.1.10
|
||||||
- run:
|
- run:
|
||||||
name: Download dependencies
|
name: Download dependencies
|
||||||
command: ./bld -Djitpack.token=$JITPACK_TOKEN download
|
command: ./bld download
|
||||||
- run:
|
- run:
|
||||||
name: Compile source
|
name: Compile source
|
||||||
command: ./bld compile
|
command: ./bld compile
|
||||||
|
|
2
.github/workflows/bld.yml
vendored
2
.github/workflows/bld.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
||||||
run: ./bld download
|
run: ./bld download
|
||||||
|
|
||||||
- name: Compile source
|
- name: Compile source
|
||||||
run: ./bld -Djitpack.token=${{ secrets.JITPACK_TOKEN }} compile
|
run: ./bld compile
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./bld jacoco
|
run: ./bld jacoco
|
||||||
|
|
|
@ -19,6 +19,6 @@ before_script:
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./bld -Djitpack.token=$JITPACK_TOKEN download
|
- ./bld download
|
||||||
- ./bld compile
|
- ./bld compile
|
||||||
- ./bld test
|
- ./bld test
|
||||||
|
|
|
@ -15,6 +15,6 @@ pipelines:
|
||||||
- sdk install kotlin
|
- sdk install kotlin
|
||||||
- source "$HOME/.sdkman/bin/sdkman-init.sh"
|
- source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
# Download, compile and test with bld
|
# Download, compile and test with bld
|
||||||
- ./bld -Djitpack.token=$JITPACK_TOKEN download
|
- ./bld download
|
||||||
- ./bld compile
|
- ./bld compile
|
||||||
- ./bld test
|
- ./bld test
|
||||||
|
|
|
@ -77,7 +77,7 @@ public class MobibotBuild extends Project {
|
||||||
repositories = List.of(
|
repositories = List.of(
|
||||||
MAVEN_LOCAL,
|
MAVEN_LOCAL,
|
||||||
MAVEN_CENTRAL,
|
MAVEN_CENTRAL,
|
||||||
new Repository("https://jitpack.io").withCredentials(property("jitpack.token"), "."),
|
new Repository("https://jitpack.io"),
|
||||||
SONATYPE_SNAPSHOTS_LEGACY);
|
SONATYPE_SNAPSHOTS_LEGACY);
|
||||||
|
|
||||||
var log4j = version(2, 24, 3);
|
var log4j = version(2, 24, 3);
|
||||||
|
|
|
@ -47,15 +47,6 @@ class ChatGpt2Test : LocalProperties() {
|
||||||
.hasNoCause()
|
.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
|
@Test
|
||||||
@DisableOnCi
|
@DisableOnCi
|
||||||
fun testChat() {
|
fun testChat() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue