about summary refs log tree commit diff
path: root/ci/pipelines/briefcase.nix
blob: 95977ccb9a3afd037261c4444327d80d5b3b9196 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, ... }:

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)