Skip to content

Commit

Permalink
Update blaze to public project v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlauer committed Jan 20, 2025
1 parent d933061 commit 9fc9b1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
3 changes: 1 addition & 2 deletions .blaze/blaze.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
blaze.dependencies = [
"com.fizzed:blaze-ssh"
"com.fizzed:buildx:1.2.0"
"com.fizzed:jne:4.3.0"
"com.fizzed:blaze-public-project:1.0.0"
]

java.source.version = 8
31 changes: 2 additions & 29 deletions .blaze/blaze.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import com.fizzed.blaze.Config;
import com.fizzed.blaze.Contexts;
import static com.fizzed.blaze.Contexts.fail;
import static com.fizzed.blaze.Systems.exec;
import static com.fizzed.blaze.Systems.which;
import static java.util.Arrays.asList;

import com.fizzed.blaze.Task;
import com.fizzed.blaze.project.PublicBlaze;
import com.fizzed.buildx.Buildx;
import com.fizzed.buildx.Target;
import org.slf4j.Logger;

import java.nio.file.Path;
import java.util.List;

public class blaze {
private final Logger log = Contexts.logger();
private final Config config = Contexts.config();
public class blaze extends PublicBlaze {

private String getTestHost(boolean required) {
String host = config.value("host").getOr("");
Expand Down Expand Up @@ -78,27 +74,4 @@ public void demo_dropwizard() {
.run();
}

private final List<Target> crossTestTargets = asList(
new Target("linux", "x64").setTags("test").setHost("bmh-build-x64-linux-latest"),
new Target("linux", "arm64").setTags("test").setHost("bmh-build-arm64-linux-latest"),
new Target("linux", "riscv64").setTags("test").setHost("bmh-build-riscv64-linux-latest"),
new Target("linux_musl", "x64").setTags("test").setHost("bmh-build-x64-linux-musl-latest"),
new Target("macos", "x64").setTags("test").setHost("bmh-build-x64-macos-latest"),
new Target("macos", "arm64").setTags("test").setHost("bmh-build-arm64-macos-latest"),
new Target("windows", "x64").setTags("test").setHost("bmh-build-x64-windows-latest"),
new Target("windows", "arm64").setTags("test").setHost("bmh-build-arm64-windows-latest"),
new Target("freebsd", "x64").setTags("test").setHost("bmh-build-x64-freebsd-latest"),
new Target("openbsd", "x64").setTags("test").setHost("bmh-build-x64-openbsd-latest")
);

@Task(order = 53)
public void cross_tests() throws Exception {
new Buildx(crossTestTargets)
.tags("test")
.execute((target, project) -> {
project.action("mvn", "clean", "test")
.run();
});
}

}
9 changes: 2 additions & 7 deletions .blaze/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,8 @@
</dependency>
<dependency>
<groupId>com.fizzed</groupId>
<artifactId>buildx</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.fizzed</groupId>
<artifactId>jne</artifactId>
<version>4.3.0</version>
<artifactId>blaze-public-project</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>

0 comments on commit 9fc9b1d

Please sign in to comment.