diff options
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -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); } |