From b02b7f71978a172848322f0671d580e425634916 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 17 Jun 2023 11:17:31 +0200 Subject: one step closer --- build.zig | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'build.zig') 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); } -- cgit v1.2.3