Skip to content
Snippets Groups Projects
Commit 09e58efa authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update checking for sub project CRI_XCBC

parent 227e0987
No related tags found
No related merge requests found
...@@ -45,18 +45,20 @@ setup_environment: ...@@ -45,18 +45,20 @@ setup_environment:
- pip install --upgrade pip - pip install --upgrade pip
- pip install s3cmd ansible - pip install s3cmd ansible
- | - |
if cd CRI_XCBC; then if [ ! -d $CI_PROJECT_DIR/CRI_XCBC ]; then
git checkout uab-prod; git pull; git clone https://github.com/uabrc/CRI_XCBC.git
git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'; cd CRI_XCBC
else
git clone https://github.com/uabrc/CRI_XCBC.git;
cd CRI_XCBC;
git remote add upstream https://github.com/jprorama/CRI_XCBC.git git remote add upstream https://github.com/jprorama/CRI_XCBC.git
cd ..
fi fi
- cd CRI_XCBC
- git config user.name "${GIT_AUTHOR_NAME}" - git config user.name "${GIT_AUTHOR_NAME}"
- git config user.email "${GIT_AUTHOR_EMAIL}" - git config user.email "${GIT_AUTHOR_EMAIL}"
- git fetch upstream - git fetch --all
- git fetch origin '+refs/pull/*/head:refs/remotes/origin/pr/*'
- git fetch upstream '+refs/pull/*/head:refs/remotes/upstream/pr/*' - git fetch upstream '+refs/pull/*/head:refs/remotes/upstream/pr/*'
- git checkout uab-prod
- git merge origin/uab-prod
- git checkout -b integration - git checkout -b integration
- git merge upstream/uab-dev - git merge upstream/uab-dev
- cd .. - cd ..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment