mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
Move scripts/flake-regressions.sh into the flake-regressions repo
It already contained a script "eval-all.sh" that did almost the same thing.
This commit is contained in:
parent
4a785a0400
commit
c29808929f
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -214,4 +214,4 @@ jobs:
|
|||||||
path: flake-regressions/tests
|
path: flake-regressions/tests
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
- run: nix build --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH scripts/flake-regressions.sh
|
- run: nix build --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH MAX_FLAKES=25 flake-regressions/eval-all.sh
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
#! /usr/bin/env bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
echo "Nix version:"
|
|
||||||
nix --version
|
|
||||||
|
|
||||||
cd flake-regressions
|
|
||||||
|
|
||||||
status=0
|
|
||||||
|
|
||||||
flakes=$(find tests -mindepth 3 -maxdepth 3 -type d -not -path '*/.*' | sort | head -n25)
|
|
||||||
|
|
||||||
echo "Running flake tests..."
|
|
||||||
|
|
||||||
for flake in $flakes; do
|
|
||||||
|
|
||||||
if ! REGENERATE=0 ./eval-flake.sh "$flake"; then
|
|
||||||
status=1
|
|
||||||
echo "❌ $flake"
|
|
||||||
else
|
|
||||||
echo "✅ $flake"
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
|
||||||
|
|
||||||
exit "$status"
|
|
Loading…
Reference in New Issue
Block a user