33 lines
610 B
Bash
Executable file
33 lines
610 B
Bash
Executable file
#!/bin/bash
|
|
|
|
echo '=== Building WASM lib ==='
|
|
cd wasm || exit 1
|
|
if ! GOOS=js GOARCH=wasm go build . "$@"; then
|
|
echo "=x= Had error building WASM lib =x="
|
|
exit 1
|
|
else
|
|
echo "=+= Successfully built WASM lib =+="
|
|
fi
|
|
cd ..
|
|
|
|
echo '=== Building CLI ==='
|
|
cd cli || exit 1
|
|
if ! go build . "$@"; then
|
|
echo "=x= Had error building CLI =x="
|
|
exit 1
|
|
else
|
|
echo "=+= Successfully built CLI =+="
|
|
fi
|
|
cd ..
|
|
|
|
echo "=== Running go core tests ==="
|
|
cd core || exit 1
|
|
if ! go test . "$@"; then
|
|
echo "=x= Core testing failed =x= "
|
|
exit 1
|
|
else
|
|
echo "=+= Successfully ran core tests =+="
|
|
fi
|
|
cd ..
|
|
|
|
bash ./unit_tests.sh
|