Mercurial > repos > blastem
view build_upload_nightly @ 1374:8f404b1fa572
Go back to resetting the refresh counter after a DMA. Probably not quite correct as it is probably reset on VDP triggered refresh, but this is close enough for now given the general limitations with my refresh code. VDP FIFO Testing seems to be passing 100% reliably again (was occassionally failing still with the last commit)
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 23 May 2017 23:47:40 -0700 |
parents | 8e3adc6264d3 |
children | 0d942ecf38c5 |
line wrap: on
line source
#!/bin/sh name=$1 . "$HOME/$name.params" echo Starting $CONTAINER_NAME lxc-start -n "$CONTAINER_NAME" if [ $? -ne 0 ]; then exit $? fi sleep 10 echo Starting build by $BUILD_USER in $CONTAINER_NAME lxc-attach -n "$CONTAINER_NAME" -- /home/$BUILD_USER/blastem/build_nightly $BUILD_USER needsu 2>&1 > /tmp/build_${name}_out.log result=$? if [ $result -ne 0 ]; then echo Build falied with return code $result stopping $CONTAINER_NAME lxc-stop -n "$CONTAINER_NAME" exit $result fi echo "Build succeeded, stopping $CONTAINER_NAME" lxc-stop -n "$CONTAINER_NAME" . $HOME/remote.params artifact=$(tail -n 1 /tmp/build_${name}_out.log) echo "Uploaing $artifact to $REMOTE_HOST" scp -i "$REMOTE_IDENT" "$HOME/.local/share/lxc/$CONTAINER_NAME/rootfs/home/$BUILD_USER/blastem/$artifact" $REMOTE_USER@$REMOTE_HOST:/home/$REMOTE_USER/nightlies echo "Done"