-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmetroplex-slicer_stable_package.sh
More file actions
executable file
·49 lines (38 loc) · 2.24 KB
/
metroplex-slicer_stable_package.sh
File metadata and controls
executable file
·49 lines (38 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
export DISPLAY=:0.0 # just DISPLAY=:0.0 without export is not enough
# CMAKE_VERSION=NA - This comment is used by the maintenance script to look up the cmake version
echo "Job started at: $(date +'%T %D %Z')"
#-------------------------------------------------------------------------------
# Changing directory is required by "slicer-buildenv-qt5-centos7-latest" script
cd /home/svc-dashboard/Dashboards/Slicer
SLICER_STABLE_ENV_NAME=qt5-almalinux8-gcc14
SLICER_STABLE_ENV_VERSION=slicer-5.10
# Download build environment
slicer_stable_script=/home/svc-dashboard/bin/slicer-buildenv-${SLICER_STABLE_ENV_NAME}-${SLICER_STABLE_ENV_VERSION}
if [[ ! -f ${slicer_stable_script} ]]; then
docker run --rm \
-e DEFAULT_DOCKCROSS_IMAGE=slicer/buildenv-${SLICER_STABLE_ENV_NAME}:${SLICER_STABLE_ENV_VERSION} \
slicer/buildenv-${SLICER_STABLE_ENV_NAME}:${SLICER_STABLE_ENV_VERSION} > $slicer_stable_script
chmod +x $slicer_stable_script
fi
# Slicer dashboard settings
docker_args="-e run_ctest_with_disable_clean=${run_ctest_with_disable_clean-FALSE}"
docker_args+=" -e run_ctest_with_update=${run_ctest_with_update-TRUE}"
docker_args+=" -e run_ctest_with_test=${run_ctest_with_test-TRUE}"
docker_args+=" -e run_extension_ctest_with_test=${run_extension_ctest_with_test-TRUE}"
# Remove source and build directories
rm -rf /home/svc-dashboard/Dashboards/Slicer/Stable/Slicer-0
rm -rf /home/svc-dashboard/Dashboards/Slicer/Stable/Slicer-0-build
rm -rf /home/svc-dashboard/Dashboards/Slicer/Stable/S-0-E-b
# Slicer 'Stable' release
time ${slicer_stable_script} \
--args "${docker_args}" \
ctest -S /work/DashboardScripts/metroplex-slicer_stable_package.cmake -VV -O /work/Logs/metroplex-slicer_stable_package.log
# Backup 'site-packages' directory associated with Slicer 'Stable' build
time cp -rp \
/home/svc-dashboard/Dashboards/Slicer/Stable/Slicer-0-build/python-install/lib/python3.12/site-packages/ \
/home/svc-dashboard/Dashboards/Slicer/Stable/Slicer-0-build/python-install/lib/python3.12/site-packages.bkp/
# Slicer 'Stable' release extensions
time ${slicer_stable_script} \
--args "${docker_args}" \
ctest -S /work/DashboardScripts/metroplex-slicerextensions_stable_nightly.cmake -VV -O /work/Logs/metroplex-slicerextensions_stable_nightly.log