Skip to content

Commit

Permalink
print test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudef committed Jan 15, 2024
1 parent 821bf60 commit 8b3478a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,13 @@
# nix run .#test-templates
apps.test-templates = app [] ''
for var in default master; do
printf -- 'run . (%s)\n' "$var"
(cd templates/"$var"; nix run --override-input zig2nix ../.. .)
printf -- 'run .#bundle (%s)\n' "$var"
(cd templates/"$var"; nix run --override-input zig2nix ../.. .#bundle)
printf -- 'run .#test (%s)\n' "$var"
(cd templates/"$var"; nix run --override-input zig2nix ../.. .#test)
printf -- 'build . (%s)\n' "$var"
(cd templates/"$var"; nix build --override-input zig2nix ../.. .; ./result/bin/"$var")
rm -f templates/"$var"/result
rm -rf templates/"$var"/zig-out
Expand Down

0 comments on commit 8b3478a

Please sign in to comment.