about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-21T17·28+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-22T22·27+0100
commit098ca0da15fa31e13c1709e57dd371c47bfdfd47 (patch)
treeeb4b0176ecd4b512aed87cdf4255088a59f447fa
parent3f9352b11848a88a677b51f0b42cd66eca5a9122 (diff)
Ensure that the build step "depends on" the lint step
This way, if the lint step fails, the build step doesn't run. Nice!
-rw-r--r--ci/pipelines/briefcase.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci/pipelines/briefcase.nix b/ci/pipelines/briefcase.nix
index b01e9f93cb9f..95977ccb9a3a 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)