From bc9b947d190c22e5aaef673e86b27801b3981980 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Sat, 15 Jul 2023 15:47:17 +0800 Subject: [PATCH] cicd: add ci workflow Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- scripts/docker_check_service.sh | 2 ++ scripts/install_im_server.sh | 5 +++++ scripts/push_start.sh | 2 ++ 3 files changed, 9 insertions(+) diff --git a/scripts/docker_check_service.sh b/scripts/docker_check_service.sh index 658199b95..263ce9352 100755 --- a/scripts/docker_check_service.sh +++ b/scripts/docker_check_service.sh @@ -82,6 +82,8 @@ do_sth() { echo -e "${PURPLE_PREFIX}=========> Check docker-compose status ${COLOR_SUFFIX} \n" } +set -e + do_sth & do_sth_pid=$(jobs -p | tail -1) diff --git a/scripts/install_im_server.sh b/scripts/install_im_server.sh index 1990f748f..9568c0dc1 100755 --- a/scripts/install_im_server.sh +++ b/scripts/install_im_server.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# Common utilities, variables and checks for all build scripts. +set -o errexit +set -o nounset +set -o pipefail + #Include shell font styles and some basic information SCRIPTS_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. diff --git a/scripts/push_start.sh b/scripts/push_start.sh index 79d877c79..74b9aedc9 100755 --- a/scripts/push_start.sh +++ b/scripts/push_start.sh @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Common utilities, variables and checks for all build scripts. + #Include shell font styles and some basic information SCRIPTS_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..