summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig19
1 files changed, 17 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index d13c67b..7379c49 100644
--- a/build.zig
+++ b/build.zig
@@ -1,4 +1,5 @@
const std = @import("std");
+//const DockerStep = @import("DockerStep.zig");
// Although this function looks imperative, note that its job is to
// declaratively construct a build graph that will be executed by an external
@@ -29,6 +30,12 @@ pub fn build(b: *std.Build) void {
// running `zig build`).
b.installArtifact(lib);
+ //const docker_run = DockerStep.create(b, .{
+ //.name = "transmission-zig",
+ //.image = "docker.io/linuxserver/transmission:4.0.3",
+ //.ports = &[_][]const u8{"9091:9091"},
+ //});
+
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const main_tests = b.addTest(.{
@@ -42,6 +49,14 @@ pub fn build(b: *std.Build) void {
// This creates a build step. It will be visible in the `zig build --help` menu,
// and can be selected like this: `zig build test`
// This will evaluate the `test` step rather than the default, which is "install".
- const test_step = b.step("test", "Run library tests");
- test_step.dependOn(&run_main_tests.step);
+ const test_step_unit = b.step("test", "Run library unit tests");
+ test_step_unit.dependOn(&run_main_tests.step);
+
+ const test_step_int = b.step("test-int", "Run library integration tests");
+ test_step_int.dependOn(&run_main_tests.step);
+ //test_step_int.dependOn(docker_run.step);
+
+ //const docker_rm = DockerStep.remove(b, "transmission-zig");
+
+ //docker_rm.step.dependOn(test_step_int);
}