ci: wait for pier to close before moving

This commit is contained in:
Philip Monk 2021-11-10 01:30:30 -08:00
parent d9d7f69f26
commit f3a264e8e0
No known key found for this signature in database
GPG Key ID: B66E1F02604E44EC

View File

@ -41,6 +41,10 @@ in stdenvNoCC.mkDerivation {
if check && sleep 10 && check; then
header "boot success"
herb ./pier -p hood -d '+hood/exit'
while [ -f ./pier/.vere.lock ]; do
echo "waiting for pier to shut down"
sleep 5
done
else
header "boot failure"
kill $(< ./pier/.vere.lock) || true
@ -49,6 +53,8 @@ in stdenvNoCC.mkDerivation {
'';
installPhase = ''
ls
ls -a ./pier
mv ./pier $out
'';
}