From 098ca0da15fa31e13c1709e57dd371c47bfdfd47 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 21 Aug 2020 18:28:06 +0100 Subject: [PATCH] Ensure that the build step "depends on" the lint step This way, if the lint step fails, the build step doesn't run. Nice! --- ci/pipelines/briefcase.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/pipelines/briefcase.nix b/ci/pipelines/briefcase.nix index b01e9f93c..95977ccb9 100644 --- a/ci/pipelines/briefcase.nix +++ b/ci/pipelines/briefcase.nix @@ -3,12 +3,15 @@ let pipeline.steps = [ { + key = "lint"; command = "${pkgs.git-secrets}/bin/git-secrets --scan-history"; label = ":broom: lint"; } { + key = "build"; command = "nix-build . -I briefcase=$(pwd) --no-out-link --show-trace"; label = ":nix: build"; + depends_on = "lint"; } ]; in pkgs.writeText "briefcase.yaml" (builtins.toJSON pipeline)