mirror of
https://github.com/srid/haskell-flake.git
synced 2024-09-19 18:08:58 +03:00
test: log test groups
This commit is contained in:
parent
7c4af21238
commit
bdde8bb68b
@ -2,11 +2,17 @@ set -e
|
||||
|
||||
FLAKE=$(pwd)
|
||||
cd ./test
|
||||
|
||||
# First, build the flake.
|
||||
echo "\n||| Testing nix build"
|
||||
nix build --override-input haskell-flake path:${FLAKE}
|
||||
# Run the devshell test script in a nix develop shell.
|
||||
echo "\n||| Testing nix devshell"
|
||||
nix develop --override-input haskell-flake path:${FLAKE} -c ./test.sh
|
||||
# Test non-devshell features:
|
||||
# Checks
|
||||
echo "\n||| Testing nix flake checks"
|
||||
nix --option sandbox false \
|
||||
build --override-input haskell-flake path:${FLAKE} -L .#check
|
||||
|
||||
echo "\n||| All tests passed!"
|
Loading…
Reference in New Issue
Block a user