Browse Source

optimized build scripts;

tags/1.2.0^2
huanghaiquan 4 years ago
parent
commit
d41c829774
2 changed files with 9 additions and 1 deletions
  1. +4
    -1
      build/build.sh
  2. +5
    -0
      build/pack.sh

+ 4
- 1
build/build.sh View File

@@ -29,7 +29,10 @@ fi
#如果执行了测试,并且测试已经通过,那么在打包的过程中可以跳过执行单元测试;
if [ $SKIP_TESTS == 0 ]
then
SKIP_TESTS=1
# 可选值:1,2;
# 值为1时附加编译参数 -DskipTests=true;
# 值为2时附加编译参数 -Dmaven.test.skip=true
SKIP_TESTS=2
fi

#执行打包构建;


+ 5
- 0
build/pack.sh View File

@@ -36,6 +36,11 @@ then
echo "编译参数:-DskipTests=true"
CMD="$CMD -DskipTests=true"
fi
if [ $SKIP_TESTS == 2 ]
then
echo "编译参数:-Dmaven.test.skip=true"
CMD="$CMD -Dmaven.test.skip=true"
fi

echo "执行命令:$CMD"
${CMD}


Loading…
Cancel
Save