diff options
author | Christian Segundo | 2023-06-17 11:17:31 +0200 |
---|---|---|
committer | Christian Segundo | 2023-06-17 11:17:31 +0200 |
commit | b02b7f71978a172848322f0671d580e425634916 (patch) | |
tree | 057fba90b084b82a200ca76b424a9dd9fa204d2f /build.zig | |
parent | c7412022c3c607c809f774db2459f9259ba95038 (diff) | |
download | zmission-b02b7f71978a172848322f0671d580e425634916.tar.gz |
one step closer
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); } |