mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
build.sh improvements
- run `go test ./...` and STOP on error - run `go build` and STOP on error - run `go install` and STOP on error
This commit is contained in:
parent
404cd7d14e
commit
773bad45f6
2 changed files with 23 additions and 9 deletions
|
|
@ -15,9 +15,30 @@ cd lib/renderer
|
|||
mewn
|
||||
cd ../..
|
||||
|
||||
echo "**** Installing Wails locally ****"
|
||||
echo "**** Checking if Wails passes unit tests ****"
|
||||
if ! go test ./...
|
||||
then
|
||||
echo ""
|
||||
echo "ERROR: Unit tests failed!"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
cd cmd/wails
|
||||
go install
|
||||
echo "**** Checking if Wails compiles ****"
|
||||
if ! go build .
|
||||
then
|
||||
echo ""
|
||||
echo "ERROR: Build failed!"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "**** Installing Wails locally ****"
|
||||
if ! go install
|
||||
then
|
||||
echo ""
|
||||
echo "ERROR: Install failed!"
|
||||
exit 1;
|
||||
fi
|
||||
cd ../..
|
||||
|
||||
echo "**** Tidying the mods! ****"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue