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.
|
-
-
- if [ $ENV_SHELL ]
- then
- #如果已经设置过环境变量,则不再重复执行;
- echo "略过初始化环境变量。。。"
- return
- fi
-
- echo "---------------- 初始化环境变量 ----------------"
-
- #主代码库的根目录
- BASE_DIR=$(cd `dirname $0`/..; pwd)
-
- #标记环境变量脚本;
- ENV_SHELL=$BASE_DIR/build/env.sh
-
- #执行代码库更新的脚本;
- UPDATE_SHELL=$BASE_DIR/build/update.sh
-
- #执行测试的脚本;
- TEST_SHELL=$BASE_DIR/build/test.sh
-
- #执行构建打包产品的脚本;
- PACK_SHELL=$BASE_DIR/build/pack.sh
-
- #框架工程的Git仓库的根目录
- FRAMEWORK_DIR=$BASE_DIR/framework
-
- #核心实现工程的Git仓库的根目录
- CORE_DIR=$BASE_DIR/core
-
- #打包工程的Git仓库的根目录
- DEPLOY_DIR=$BASE_DIR/deploy
-
- #测试工程的Git仓库的根目录
- TEST_DIR=$BASE_DIR/test
-
- #初始化参数:是否略过测试步骤;
- SKIP_TESTS=0
-
- #检查输入参数
- for i in $*; do
- case $i in
- "--skipTests")
- #忽略测试;
- echo "收到参数 --skipTests 指示略过测试环节。。。"
-
- SKIP_TESTS=1
- ;;
- esac
- done
-
- echo "---------------- 完成环境变量初始化 ----------------"
-
|