5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:51:26 +08:00

run tests first to fail fast

This commit is contained in:
Travis McLane 2020-04-04 13:08:20 -05:00 committed by Lea Anthony
parent 8405ce37f9
commit b68c69f4eb

View File

@ -1,5 +1,13 @@
#!/usr/bin/env bash
echo "**** Checking if Wails passes unit tests ****"
if ! go test ./...
then
echo ""
echo "ERROR: Unit tests failed!"
exit 1;
fi
# Build runtime
echo "**** Building Runtime ****"
cd runtime/js
@ -15,13 +23,6 @@ cd lib/renderer
mewn
cd ../..
echo "**** Checking if Wails passes unit tests ****"
if ! go test ./...
then
echo ""
echo "ERROR: Unit tests failed!"
exit 1;
fi
cd cmd/wails
echo "**** Checking if Wails compiles ****"