Only check kotlinc arguments on Linux
Some checks failed
bld-ci / build-bld-project (17, 1.9.25, macos-latest) (push) Has been cancelled
bld-ci / build-bld-project (17, 1.9.25, ubuntu-latest) (push) Has been cancelled
bld-ci / build-bld-project (17, 1.9.25, windows-latest) (push) Has been cancelled
bld-ci / build-bld-project (17, 2.1.20, macos-latest) (push) Has been cancelled
bld-ci / build-bld-project (17, 2.1.20, ubuntu-latest) (push) Has been cancelled
bld-ci / build-bld-project (17, 2.1.20, windows-latest) (push) Has been cancelled
bld-ci / build-bld-project (21, 1.9.25, macos-latest) (push) Has been cancelled
bld-ci / build-bld-project (21, 1.9.25, ubuntu-latest) (push) Has been cancelled
bld-ci / build-bld-project (21, 1.9.25, windows-latest) (push) Has been cancelled
bld-ci / build-bld-project (21, 2.1.20, macos-latest) (push) Has been cancelled
bld-ci / build-bld-project (21, 2.1.20, ubuntu-latest) (push) Has been cancelled
bld-ci / build-bld-project (21, 2.1.20, windows-latest) (push) Has been cancelled
bld-ci / build-bld-project (24, 1.9.25, macos-latest) (push) Has been cancelled
bld-ci / build-bld-project (24, 1.9.25, ubuntu-latest) (push) Has been cancelled
bld-ci / build-bld-project (24, 1.9.25, windows-latest) (push) Has been cancelled
bld-ci / build-bld-project (24, 2.1.20, macos-latest) (push) Has been cancelled
bld-ci / build-bld-project (24, 2.1.20, ubuntu-latest) (push) Has been cancelled
bld-ci / build-bld-project (24, 2.1.20, windows-latest) (push) Has been cancelled
javadocs-pages / deploy (push) Has been cancelled

This commit is contained in:
Erik C. Thauvin 2025-03-24 01:21:31 -07:00
parent 320f6a99e7
commit 11a00fdc53
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 11 additions and 4 deletions

View file

@ -23,6 +23,7 @@ import rife.bld.publish.PublishLicense;
import rife.bld.publish.PublishScm; import rife.bld.publish.PublishScm;
import java.util.List; import java.util.List;
import java.util.Locale;
import static rife.bld.dependencies.Repository.*; import static rife.bld.dependencies.Repository.*;
import static rife.bld.dependencies.Scope.compile; import static rife.bld.dependencies.Scope.compile;
@ -104,10 +105,13 @@ public class DokkaOperationBuild extends Project {
@Override @Override
public void test() throws Exception { public void test() throws Exception {
new ExecOperation() var os = System.getProperty("os.name");
.fromProject(this) if (os != null && os.toLowerCase(Locale.US).contains("linux")) {
.command("scripts/cliargs.sh") new ExecOperation()
.execute(); .fromProject(this)
.command("scripts/cliargs.sh")
.execute();
}
super.test(); super.test();
} }
} }

View file

@ -19,6 +19,8 @@ package rife.bld.extension;
import org.assertj.core.api.AutoCloseableSoftAssertions; import org.assertj.core.api.AutoCloseableSoftAssertions;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
import rife.bld.blueprints.BaseProjectBlueprint; import rife.bld.blueprints.BaseProjectBlueprint;
import rife.bld.extension.dokka.LoggingLevel; import rife.bld.extension.dokka.LoggingLevel;
import rife.bld.extension.dokka.OutputFormat; import rife.bld.extension.dokka.OutputFormat;
@ -69,6 +71,7 @@ class DokkaOperationTest {
} }
@Test @Test
@EnabledOnOs(OS.LINUX)
void executeConstructProcessCommandListTest() throws IOException { void executeConstructProcessCommandListTest() throws IOException {
var args = Files.readAllLines(Paths.get("src", "test", "resources", "dokka-args.txt")); var args = Files.readAllLines(Paths.get("src", "test", "resources", "dokka-args.txt"));