2020-06-27 18:14:58 +02:00
|
|
|
# This file configures the primary build pipeline used for the
|
|
|
|
# top-level list of depot targets.
|
|
|
|
#
|
|
|
|
# It outputs a "YAML" (actually JSON) file which is evaluated and
|
|
|
|
# submitted to Buildkite at the start of each build. This means we can
|
|
|
|
# dynamically configure the pipeline execution here.
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (builtins) toJSON;
|
|
|
|
inherit (pkgs) writeText;
|
|
|
|
|
|
|
|
# This defines the build pipeline, using the pipeline format
|
|
|
|
# documented on https://buildkite.com/docs/pipelines/defining-steps
|
|
|
|
pipeline.steps = [
|
|
|
|
{
|
2020-06-29 02:30:00 +02:00
|
|
|
command = "nix-build -A ciBuilds.__allTargets --show-trace";
|
2020-06-28 04:37:34 +02:00
|
|
|
label = ":duck:";
|
2020-06-27 18:14:58 +02:00
|
|
|
}
|
2020-07-17 06:27:05 +02:00
|
|
|
{
|
|
|
|
command = "${depot.nix.bufCheck}/bin/ci-buf-check";
|
|
|
|
label = ":water_buffalo:";
|
|
|
|
}
|
2020-06-27 18:14:58 +02:00
|
|
|
];
|
|
|
|
in writeText "depot.yaml" (toJSON pipeline)
|