Commit 301d60b5 authored by Matt Clarkson's avatar Matt Clarkson

Issue #1: More path tweaking.

parent 6208d9a9
Pipeline #4080 failed with stages
in 26 minutes and 26 seconds
......@@ -32,12 +32,12 @@ linux build:
- shared-linux, cuda
script:
- export src_dir=${CI_PROJECT_DIR}
- export git_hash=${CI_COMMIT_SHORT_SHA}
- export sb_dir="${CI_PROJECT_DIR}-${CI_COMMIT_SHORT_SHA}-sb"
- export src_dir=${CI_PROJECT_DIR}
- export sb_dir="${src_dir}-${git_hash}-sb"
- export pb_dir="${sb_dir}/SKSURGERYGPUCPP-build"
- echo "Sources - ${src_dir}"
- echo "Commit - ${git_hash}"
- echo "Sources - ${src_dir}"
- echo "Superbuild - ${sb_dir}"
- echo "Project build - ${pb_dir}"
- hostname
......@@ -66,8 +66,9 @@ linux test:
- shared-linux, cuda
script:
- export git_hash=${CI_COMMIT_SHORT_SHA}
- export src_dir=${CI_PROJECT_DIR}
- export sb_dir="${CI_PROJECT_DIR}-${CI_COMMIT_SHORT_SHA}-sb"
- export sb_dir="${src_dir}-${git_hash}-sb"
- export pb_dir="${sb_dir}/SKSURGERYGPUCPP-build"
- pwd
- cd ${sb_dir}
......@@ -93,7 +94,9 @@ linux cleanup:
- shared-linux, cuda
script:
- export sb_dir="${CI_PROJECT_DIR}-${CI_COMMIT_SHORT_SHA}-sb"
- export git_hash=${CI_COMMIT_SHORT_SHA}
- export src_dir=${CI_PROJECT_DIR}
- export sb_dir="${src_dir}-${git_hash}-sb"
- pwd
- rm -rf ${sb_dir}
......@@ -146,6 +149,7 @@ windows test:
- shared-win-cuda
script:
- ${Env:git_hash} = ${CI_COMMIT_SHORT_SHA}
- ${Env:src_dir} = ${CI_PROJECT_DIR}
- ${Env:sb_dir} = "C:\gitlab-runner\scikit-surgerygpucpp-${Env:git_hash}-sb"
- ${Env:pb_dir} = "${Env:sb_dir}\SKSURGERYGPUCPP-build"
......@@ -177,6 +181,7 @@ windows cleanup:
- shared-win-cuda
script:
- ${Env:git_hash} = ${CI_COMMIT_SHORT_SHA}
- ${Env:sb_dir} = "C:\gitlab-runner\scikit-surgerygpucpp-${Env:git_hash}-sb"
- Remove-Item ${Env:sb_dir} -Recurse -Force
- if ($LastExitCode -ne 0) {throw $LastExitCode}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment