Skip to content
Snippets Groups Projects
Commit 8bdf00c6 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Merge branch 'feature/plugin_pipeline_setup' into 'master'

Feature/plugin pipeline setup

See merge request VR-Group/unreal-development/unreal-ci!25
parents 7c88572c 8abbb1a5
No related branches found
No related tags found
2 merge requests!27Master,!25Feature/plugin pipeline setup
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
include: include:
- project: 'vr-group/unreal-development/unreal-ci' - project: 'vr-group/unreal-development/unreal-ci'
ref: feature/plugin_project_generation ref: master
file: '/shared_scripts.yml' file: '/shared_scripts.yml'
# In this file you are able to configure your plugins pipeline. # In this file you are able to configure your plugins pipeline.
...@@ -31,7 +31,7 @@ include: ...@@ -31,7 +31,7 @@ include:
# GEN_TEMPLATE_BRANCH: "develop" # GEN_TEMPLATE_BRANCH: "develop"
# GEN_DEPENDENCIES: "( # GEN_DEPENDENCIES: "(
# [master@nDisplayExtensions]='https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/ndisplayextensions.git' # [master@nDisplayExtensions]='https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/ndisplayextensions.git'
# [master@CaveOverlay]='https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/unreal-cave-overlay.git' # [master@UniversalLogging]='https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/universallogging.git'
# )" # )"
# #
# You can uncomment the deploy lines to deploy your project to the CAVE/VRDev. This only makes sense, if your plugin works # You can uncomment the deploy lines to deploy your project to the CAVE/VRDev. This only makes sense, if your plugin works
...@@ -49,10 +49,14 @@ Generate_Project: ...@@ -49,10 +49,14 @@ Generate_Project:
Build_Windows: Build_Windows:
only: ['web', 'schedules'] only: ['web', 'schedules']
extends: .Build_Windows_ extends: .Build_Windows_
tags:
- windows
- unreal-4.26
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
GIT_CHECKOUT: "false" GIT_CHECKOUT: "false"
#CLIENT_CONFIG: "DebugGame" # CLIENT_CONFIG: "Shipping"
CLIENT_CONFIG: "DebugGame"
needs: needs:
- job: "Generate_Project" - job: "Generate_Project"
artifacts: true artifacts: true
...@@ -60,10 +64,14 @@ Build_Windows: ...@@ -60,10 +64,14 @@ Build_Windows:
Build_CentOS: Build_CentOS:
only: ['web', 'schedules'] only: ['web', 'schedules']
extends: .Build_CentOS_ extends: .Build_CentOS_
tags:
- centos
- unreal-4.26
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
GIT_CHECKOUT: "false" GIT_CHECKOUT: "false"
#CLIENT_CONFIG: "DebugGame" # CLIENT_CONFIG: "Shipping"
CLIENT_CONFIG: "DebugGame"
needs: needs:
- job: "Generate_Project" - job: "Generate_Project"
artifacts: true artifacts: true
... ...
......
...@@ -24,17 +24,22 @@ variables: ...@@ -24,17 +24,22 @@ variables:
variables: variables:
GEN_TEMPLATE_REPO: "https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/unrealprojecttemplate.git" GEN_TEMPLATE_REPO: "https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/unrealprojecttemplate.git"
GEN_TEMPLATE_BRANCH: "develop" GEN_TEMPLATE_BRANCH: "develop"
GEN_DEPENDENCIES: "([master@nDisplayExtensions]='https://devhub.vr.rwth-aachen.de/VR-Group/unreal-development/ndisplayextensions.git')" GEN_DEPENDENCIES: "()"
RUN_SETUP: "true"
script: script:
- find ${CI_PROJECT_DIR} -mindepth 1 -delete - find ${CI_PROJECT_DIR} -mindepth 1 -delete
- declare -A dependencies=$GEN_DEPENDENCIES - declare -A dependencies=$GEN_DEPENDENCIES
- git clone -b "${GEN_TEMPLATE_BRANCH}" --single-branch ${GEN_TEMPLATE_REPO} ${CI_PROJECT_DIR} - git clone -b "${GEN_TEMPLATE_BRANCH}" --depth 1 --single-branch --recursive ${GEN_TEMPLATE_REPO} ${CI_PROJECT_DIR}
- git clone -b "${CI_COMMIT_REF_NAME}" --single-branch ${CI_PROJECT_URL}.git/ ${CI_PROJECT_DIR}/Plugins/${CI_PROJECT_NAME} - if [[ "${RUN_SETUP}" == "true" ]] ; then
- rm -rf ${CI_PROJECT_DIR}/.git ${CI_PROJECT_DIR}/Plugins/${CI_PROJECT_NAME}/.git - bash ${CI_PROJECT_DIR}/setup.sh --install-default-plugins
- fi
- git submodule add ${CI_PROJECT_URL}.git/ ${CI_PROJECT_DIR}/Plugins/${CI_PROJECT_NAME}
- cd ${CI_PROJECT_DIR}/Plugins/${CI_PROJECT_NAME} && git checkout ${CI_COMMIT_SHA}
- cd ${CI_PROJECT_DIR}
- for i in "${!dependencies[@]}"; do - for i in "${!dependencies[@]}"; do
- git clone -b "${i%%@*}" --single-branch ${dependencies[$i]} ${CI_PROJECT_DIR}/Plugins/${i#*@} - git submodule add -b "${i%%@*}" --depth 1 ${dependencies[$i]} ${CI_PROJECT_DIR}/Plugins/${i#*@}
- rm -rf ${CI_PROJECT_DIR}/Plugins/${i#*@}/.git
- done - done
- rm -rf ${CI_PROJECT_DIR}/.git
artifacts: artifacts:
name: "Generated_Project_${CI_PROJECT_NAME}" name: "Generated_Project_${CI_PROJECT_NAME}"
paths: ["."] paths: ["."]
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment