Skip to content
Snippets Groups Projects
Verified Commit c7eceda7 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Symlink build dir.

parent 92c807f3
No related branches found
No related tags found
No related merge requests found
...@@ -6,12 +6,14 @@ ...@@ -6,12 +6,14 @@
before_script: before_script:
- "echo \"For debugging run: docker run --rm -it -v $CI_BUILDS_DIR:/builds -w=$CI_PROJECT_DIR $CI_JOB_IMAGE\"" - "echo \"For debugging run: docker run --rm -it -v $CI_BUILDS_DIR:/builds -w=$CI_PROJECT_DIR $CI_JOB_IMAGE\""
- rm -rf ../build - build_dir=${BUILD_DIR:-../build/$CMAKE_PRESET}
- rm -rf $build_dir
- mkdir -p $build_dir
- ln -s ../build .
- ([ "${CONAN_USER_HOME}" == "${CI_PROJECT_DIR}/.conan" ]) && conan remove --system-reqs '*' - ([ "${CONAN_USER_HOME}" == "${CI_PROJECT_DIR}/.conan" ]) && conan remove --system-reqs '*'
- ([[ $BUILD_CTEST_LARGE_ON_MASTER && "${CI_COMMIT_BRANCH}" == "master" && "${CMAKE_ARGS}" == *"USE_PYTHON=ON"* ]]) && export BUILD_CTEST_LARGE=true - ([[ $BUILD_CTEST_LARGE_ON_MASTER && "${CI_COMMIT_BRANCH}" == "master" && "${CMAKE_ARGS}" == *"USE_PYTHON=ON"* ]]) && export BUILD_CTEST_LARGE=true
script: script:
- cmake -S . --preset=$CMAKE_PRESET $CMAKE_ARGS -DOGS_BUILD_PROCESSES=$BUILD_PROCESSES - cmake -S . --preset=$CMAKE_PRESET $CMAKE_ARGS -DOGS_BUILD_PROCESSES=$BUILD_PROCESSES
- build_dir=${BUILD_DIR:-../build/$CMAKE_PRESET}
- cd $build_dir - cd $build_dir
- | - |
if [[ -z "$TARGETS" ]]; then if [[ -z "$TARGETS" ]]; then
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
script: script:
- $build_directory = if ($env:BUILD_DIR) { $env:BUILD_DIR } else { "..\build\" + $env:CMAKE_PRESET } - $build_directory = if ($env:BUILD_DIR) { $env:BUILD_DIR } else { "..\build\" + $env:CMAKE_PRESET }
- (rm -r -fo $build_directory) - (rm -r -fo $build_directory)
- cmd /c if not exist $build_directory mkdir $build_directory
# Create symlink https://stackoverflow.com/a/34905638/80480
- cmd /c mklink /D build ..\build
- $cmake_cmd = "cmake -S . --preset=$env:CMAKE_PRESET - $cmake_cmd = "cmake -S . --preset=$env:CMAKE_PRESET
$env:CMAKE_ARGS $env:CMAKE_ARGS
-DOGS_BUILD_PROCESSES=$env:BUILD_PROCESSES" -DOGS_BUILD_PROCESSES=$env:BUILD_PROCESSES"
......
.test-artifacts: .test-artifacts:
artifacts: artifacts:
paths: paths:
- ../build/*/Tests/ctest.xml - build/*/Tests/ctest.xml
- ../build/*/Tests/testrunner.xml - build/*/Tests/testrunner.xml
- ../build/*/make.output - build/*/make.output
- ../build/*/*.zip - build/*/*.zip
- ../build/*/*.tar.gz - build/*/*.tar.gz
expire_in: 1 week expire_in: 1 week
reports: reports:
junit: junit:
- ../build/*/Tests/testrunner.xml - build/*/Tests/testrunner.xml
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