|
| 1 | +let ContainerImages = ../../Constants/ContainerImages.dhall |
| 2 | + |
| 3 | +let Cmd = ../../Lib/Cmds.dhall |
| 4 | + |
| 5 | +let S = ../../Lib/SelectFiles.dhall |
| 6 | + |
| 7 | +let Pipeline = ../../Pipeline/Dsl.dhall |
| 8 | + |
| 9 | +let PipelineTag = ../../Pipeline/Tag.dhall |
| 10 | + |
| 11 | +let PipelineScope = ../../Pipeline/Scope.dhall |
| 12 | + |
| 13 | +let JobSpec = ../../Pipeline/JobSpec.dhall |
| 14 | + |
| 15 | +let Command = ../../Command/Base.dhall |
| 16 | + |
| 17 | +let Docker = ../../Command/Docker/Type.dhall |
| 18 | + |
| 19 | +let Size = ../../Command/Size.dhall |
| 20 | + |
| 21 | +let B = ../../External/Buildkite.dhall |
| 22 | + |
| 23 | +let B/SoftFail = B.definitions/commandStep/properties/soft_fail/Type |
| 24 | + |
| 25 | +in Pipeline.build |
| 26 | + Pipeline.Config::{ |
| 27 | + , spec = JobSpec::{ |
| 28 | + , dirtyWhen = |
| 29 | + [ S.strictlyStart (S.contains "src") |
| 30 | + , S.exactly "buildkite/src/Jobs/Test/HardForkTest" "dhall" |
| 31 | + , S.strictlyStart (S.contains "scripts/hardfork") |
| 32 | + , S.strictlyStart (S.contains "nix") |
| 33 | + , S.exactly "flake" "nix" |
| 34 | + , S.exactly "flake" "lock" |
| 35 | + , S.exactly "default" "nix" |
| 36 | + ] |
| 37 | + , path = "Test" |
| 38 | + , name = "HardForkTestAdvanced" |
| 39 | + , scope = PipelineScope.AllButPullRequest |
| 40 | + , tags = |
| 41 | + [ PipelineTag.Type.Long |
| 42 | + , PipelineTag.Type.Test |
| 43 | + , PipelineTag.Type.Stable |
| 44 | + , PipelineTag.Type.Hardfork |
| 45 | + ] |
| 46 | + } |
| 47 | + , steps = |
| 48 | + [ Command.build |
| 49 | + Command.Config::{ |
| 50 | + , commands = |
| 51 | + [ Cmd.runInDocker |
| 52 | + Cmd.Docker::{ |
| 53 | + , image = ContainerImages.nixos |
| 54 | + , privileged = True |
| 55 | + , useBash = False |
| 56 | + } |
| 57 | + "./scripts/hardfork/build-and-test.sh --fork-from origin/master --fork-method advanced" |
| 58 | + ] |
| 59 | + , label = "hard fork test - advanced mode" |
| 60 | + , key = "hard-fork-test-advanced" |
| 61 | + , target = Size.Integration |
| 62 | + , soft_fail = Some (B/SoftFail.Boolean False) |
| 63 | + , docker = None Docker.Type |
| 64 | + , timeout_in_minutes = Some +420 |
| 65 | + } |
| 66 | + ] |
| 67 | + } |
0 commit comments