mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* dbeaver/pro#5494 feat: refactor tests * chore: update yarn.lock * chore: strict build script * fix: review
36 lines
647 B
Bash
Executable File
36 lines
647 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
|
|
echo "Build static content"
|
|
|
|
mkdir -p ./cloudbeaver/web
|
|
|
|
cd ../../cloudbeaver/common-typescript
|
|
|
|
yarn install --immutable
|
|
cd ../webapp
|
|
yarn install --immutable
|
|
cd ./packages/product-default
|
|
yarn run bundle
|
|
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
echo 'Application build failed'; exit $rc
|
|
fi
|
|
|
|
cd ../../../common-typescript
|
|
yarn test
|
|
cd ../webapp
|
|
yarn test
|
|
|
|
if [[ "$?" -ne 0 ]] ; then
|
|
echo 'Frontend tests failed'; exit $rc
|
|
fi
|
|
|
|
cd ../deploy
|
|
|
|
echo "Copy static content"
|
|
|
|
cp -rp ../webapp/packages/product-default/lib/* cloudbeaver/web
|
|
|
|
echo "Cloudbeaver is ready. Run run-server.sh in cloudbeaver folder to start the server."
|