mirror of
https://github.com/RGBCube/alejandra
synced 2025-07-29 03:27:44 +00:00
feat: better ci logs
This commit is contained in:
parent
993fdd2ff6
commit
6692b4ae85
3 changed files with 12 additions and 7 deletions
|
@ -1,7 +1,8 @@
|
|||
agents:
|
||||
queue: private
|
||||
|
||||
steps:
|
||||
- label: build
|
||||
agents:
|
||||
queue: private
|
||||
artifacts:
|
||||
- alejandra-*
|
||||
command:
|
||||
|
@ -16,8 +17,6 @@ steps:
|
|||
- cp -L result/* .
|
||||
|
||||
- label: coverage
|
||||
agents:
|
||||
queue: private
|
||||
command:
|
||||
- echo +++ Fetch
|
||||
- git branch -D main
|
||||
|
|
|
@ -13,14 +13,14 @@ steps:
|
|||
- git clone --branch=master --depth 1 --origin=upstream file:///data/nixpkgs
|
||||
|
||||
- echo --- Formatting - before
|
||||
- nix --tarball-ttl 1 run github:kamadorueda/alejandra -- nixpkgs 2>/dev/null
|
||||
- nix run github:kamadorueda/alejandra -- --quiet nixpkgs
|
||||
- git -C nixpkgs add .
|
||||
- git -C nixpkgs commit -m formatting-before -q
|
||||
- git -C nixpkgs branch formatting-before
|
||||
- git -C nixpkgs reset --hard master~1
|
||||
|
||||
- echo --- Formatting - after
|
||||
- nix run . -- nixpkgs 2>/dev/null
|
||||
- nix run . -- --quiet nixpkgs
|
||||
- git -C nixpkgs diff formatting-before > formatting-before-vs-after.patch.txt
|
||||
|
||||
- label: closure diff
|
||||
|
@ -38,7 +38,7 @@ steps:
|
|||
- nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-before.txt
|
||||
|
||||
- echo --- Formatting
|
||||
- nix run . -- nixpkgs 2>/dev/null
|
||||
- nix run . -- --quiet nixpkgs
|
||||
|
||||
- echo --- Closure @ after
|
||||
- nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-after.txt
|
||||
|
|
6
buildkite.yaml
Normal file
6
buildkite.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
steps:
|
||||
- if: build.branch == "main"
|
||||
command: buildkite-agent pipeline upload buildkite-cd.yaml
|
||||
|
||||
- if: build.branch != "main"
|
||||
command: buildkite-agent pipeline upload buildkite-ci.yaml
|
Loading…
Add table
Add a link
Reference in a new issue