mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 03:52:41 +08:00
run tests first to fail fast
This commit is contained in:
parent
8405ce37f9
commit
b68c69f4eb
@ -1,5 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
# Build runtime
|
||||||
echo "**** Building Runtime ****"
|
echo "**** Building Runtime ****"
|
||||||
cd runtime/js
|
cd runtime/js
|
||||||
@ -15,13 +23,6 @@ cd lib/renderer
|
|||||||
mewn
|
mewn
|
||||||
cd ../..
|
cd ../..
|
||||||
|
|
||||||
echo "**** Checking if Wails passes unit tests ****"
|
|
||||||
if ! go test ./...
|
|
||||||
then
|
|
||||||
echo ""
|
|
||||||
echo "ERROR: Unit tests failed!"
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd cmd/wails
|
cd cmd/wails
|
||||||
echo "**** Checking if Wails compiles ****"
|
echo "**** Checking if Wails compiles ****"
|
||||||
|
Loading…
Reference in New Issue
Block a user