You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #定义子脚本的错误返回命令
- RTN="return"
-
- #调用当前脚本目录下 env.sh 脚本,设置环境变量,处理当前传入参数;
- if [ ! $ENV_SHELL ]
- then
- source `dirname $0`/env.sh "$*"
- fi
-
- # 更新代码库;
- source $UPDATE_SHELL
-
- #检查执行结果是否正常
- ERR=$?
- if [ $ERR != 0 ]
- then
- echo "更新代码库时发生了错误[$ERR]!!终止测试!! [$RTN]"
- ${RTN} $ERR
- fi
-
-
- echo "---------------- 开始集成测试 ----------------"
-
- cd $TEST_DIR
- echo "当前目录:`pwd`"
-
- echo "执行命令:mvn clean package"
- mvn clean package
-
- #检查执行结果是否正常
- ERR=$?
- if [ $ERR != 0 ]
- then
- echo "集成测试过程中发生了错误[$ERR]!!终止测试!! [$RTN]"
- ${RTN} $ERR
- fi
-
- echo "---------------- 完成集成测试 ----------------"
|