mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Changed directory
Former-commit-id: c44614852afe13acf613d756dccd31d8d1cfead4
This commit is contained in:
parent
3d9c8b5faf
commit
6afc385019
@ -9,11 +9,12 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
before_script:
|
before_script:
|
||||||
- cd /cache
|
- mkdir -p /cache/veloren
|
||||||
|
- cd /cache/veloren
|
||||||
- if [ -d .git ]; then
|
- if [ -d .git ]; then
|
||||||
echo "is git dir";
|
echo "is git dir";
|
||||||
else
|
else
|
||||||
git clone $CI_REPOSITORY_URL;
|
git clone $CI_REPOSITORY_URL . ;
|
||||||
fi;
|
fi;
|
||||||
- rm -f .git/index.lock
|
- rm -f .git/index.lock
|
||||||
- rm -f .git/shallow.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 fetch origin --prune +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
|
||||||
- git checkout -f -q $CI_COMMIT_SHA
|
- git checkout -f -q $CI_COMMIT_SHA
|
||||||
- if [ ! -z "${SOURCE_PROJECT}" -a "${SOURCE_PROJECT}" != " " ]; then
|
- if [ ! -z "${SOURCE_PROJECT}" -a "${SOURCE_PROJECT}" != " " ]; then
|
||||||
echo "THIS SEEMS TO BE A MERGE PIPELINE FROM ${SOURCE_PROJECT}/${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}";
|
git pull "https://gitlab.com/${SOURCE_PROJECT}/veloren.git" "${SOURCE_BRANCH}";
|
||||||
fi;
|
fi;
|
||||||
- git submodule sync --recursive
|
- git submodule sync --recursive
|
||||||
- git submodule update --remote --recursive
|
- git submodule update --remote --recursive
|
||||||
- git status
|
- git status
|
||||||
- if [ -d target ]; then
|
- if [ -d target ]; then
|
||||||
ls -la target;
|
ls -la target;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
#############
|
#############
|
||||||
|
Loading…
Reference in New Issue
Block a user