diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-21T17·28+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-22T22·27+0100 |
commit | 098ca0da15fa31e13c1709e57dd371c47bfdfd47 (patch) | |
tree | eb4b0176ecd4b512aed87cdf4255088a59f447fa /ci/pipelines | |
parent | 3f9352b11848a88a677b51f0b42cd66eca5a9122 (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!
Diffstat (limited to 'ci/pipelines')
-rw-r--r-- | ci/pipelines/briefcase.nix | 3 |
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) |