mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 20:55:44 +00:00
* split test job into eagle & shardok * split the build jobs too Former-commit-id: 74352cd273c2317d7c147cb0bd66a485246fc335
28 lines
594 B
Bash
Executable File
28 lines
594 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
COMMAND_LOG="$(bazel info command_log)"
|
|
bazel build \
|
|
//src/main/scala/net/eagle0/eagle:eagle_server_deploy.jar
|
|
STATUS="$?"
|
|
|
|
if [ $STATUS -eq 0 ]
|
|
then
|
|
echo "Build succeeded!" > command_log.txt
|
|
else
|
|
echo "Build failed. Copying command log from ${COMMAND_LOG}"
|
|
cp "${COMMAND_LOG}" command_log.txt
|
|
exit $STATUS
|
|
fi
|
|
|
|
echo "Removing old server files..."
|
|
/bin/rm -rf ./deploy
|
|
/bin/mkdir -p ./deploy
|
|
|
|
echo "Copying eagle jar..."
|
|
/bin/cp -R ./bazel-bin/src/main/scala/net/eagle0/eagle/eagle_server_deploy.jar ./deploy/
|
|
|
|
echo "build_servers_eagle completed"
|