2017-12-24 06:44:48 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-12-24 08:57:47 -05:00
|
|
|
cd $(dirname $0)/..
|
2017-12-24 06:44:48 -05:00
|
|
|
|
2017-12-24 08:57:47 -05:00
|
|
|
skip_paths=(
|
|
|
|
./inversepath/usbarmory/*
|
|
|
|
./tests/*
|
|
|
|
)
|
|
|
|
|
|
|
|
find=(find . -name *.nix)
|
|
|
|
|
|
|
|
for path in ${skip_paths[@]}; do
|
|
|
|
find+=(-not -path $path)
|
|
|
|
done
|
|
|
|
|
|
|
|
for profile in `${find[@]}`; do
|
|
|
|
echo evaluating $profile >&2
|
|
|
|
|
|
|
|
nixos-rebuild \
|
|
|
|
-I nixos-config=tests/eval-test.nix \
|
|
|
|
-I nixos-hardware-profile=$profile \
|
|
|
|
dry-build
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2017-12-24 06:44:48 -05:00
|
|
|
done
|