Changed directory

Former-commit-id: c44614852afe13acf613d756dccd31d8d1cfead4
This commit is contained in:
Forest Anderson 2019-04-24 15:20:48 -04:00 committed by Forest
parent 3d9c8b5faf
commit 6afc385019

View File

@ -9,11 +9,12 @@ stages:
variables:
GIT_STRATEGY: none
before_script:
- cd /cache
- mkdir -p /cache/veloren
- cd /cache/veloren
- if [ -d .git ]; then
echo "is git dir";
else
git clone $CI_REPOSITORY_URL;
git clone $CI_REPOSITORY_URL . ;
fi;
- rm -f .git/index.lock
- rm -f .git/shallow.lock
@ -23,14 +24,14 @@ before_script:
- git fetch origin --prune +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
- git checkout -f -q $CI_COMMIT_SHA
- if [ ! -z "${SOURCE_PROJECT}" -a "${SOURCE_PROJECT}" != " " ]; then
echo "THIS SEEMS TO BE A MERGE PIPELINE FROM ${SOURCE_PROJECT}/${SOURCE_BRANCH}";
git pull "https://gitlab.com/${SOURCE_PROJECT}/veloren.git" "${SOURCE_BRANCH}";
echo "THIS SEEMS TO BE A MERGE PIPELINE FROM ${SOURCE_PROJECT}/${SOURCE_BRANCH}";
git pull "https://gitlab.com/${SOURCE_PROJECT}/veloren.git" "${SOURCE_BRANCH}";
fi;
- git submodule sync --recursive
- git submodule update --remote --recursive
- git status
- if [ -d target ]; then
ls -la target;
ls -la target;
fi;
#############