未验证 提交 f3ffec23 编写于 作者: L Lei Wang 提交者: GitHub

CI: exit when fail any step. (#10579)

上级 95314a23
...@@ -473,6 +473,7 @@ EOF ...@@ -473,6 +473,7 @@ EOF
} }
function main() { function main() {
set -e
local CMD=$1 local CMD=$1
init init
case $CMD in case $CMD in
......
...@@ -59,7 +59,7 @@ EOL ...@@ -59,7 +59,7 @@ EOL
if [ ! -d "${HOME}/.ccache" ]; then if [ ! -d "${HOME}/.ccache" ]; then
mkdir ${HOME}/.ccache mkdir ${HOME}/.ccache
fi fi
set -x set -ex
${DOCKER_CMD} run -it \ ${DOCKER_CMD} run -it \
--name $CONTAINER_ID \ --name $CONTAINER_ID \
${DOCKER_ENV} \ ${DOCKER_ENV} \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册