mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 14:08:35 +08:00
ci: rename pre-build step to pre-configure since that is when it runs
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName
|
||||
if (Test-Path -Path ".gitlab/ci/pre_build_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) {
|
||||
. ".gitlab/ci/pre_build_$env:CMAKE_CONFIGURATION.ps1"
|
||||
}
|
4
.gitlab/ci/pre_configure.ps1
Normal file
4
.gitlab/ci/pre_configure.ps1
Normal file
@@ -0,0 +1,4 @@
|
||||
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().MainModule.FileName
|
||||
if (Test-Path -Path ".gitlab/ci/pre_configure_$env:CMAKE_CONFIGURATION.ps1" -PathType Leaf) {
|
||||
. ".gitlab/ci/pre_configure_$env:CMAKE_CONFIGURATION.ps1"
|
||||
}
|
@@ -13,6 +13,6 @@ quietly() {
|
||||
rm -f "$log"
|
||||
}
|
||||
|
||||
if test -r ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"; then
|
||||
source ".gitlab/ci/pre_build_${CMAKE_CONFIGURATION}.sh"
|
||||
if test -r ".gitlab/ci/pre_configure_${CMAKE_CONFIGURATION}.sh"; then
|
||||
source ".gitlab/ci/pre_configure_${CMAKE_CONFIGURATION}.sh"
|
||||
fi
|
@@ -715,7 +715,7 @@
|
||||
- .gitlab/ci/sccache.sh
|
||||
- sccache --start-server
|
||||
- sccache --show-stats
|
||||
- .gitlab/ci/pre_build.sh
|
||||
- .gitlab/ci/pre_configure.sh
|
||||
- "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_configure.cmake"
|
||||
- "$LAUNCHER ctest -VV -S .gitlab/ci/ctest_build.cmake"
|
||||
- .gitlab/ci/post_build.sh
|
||||
|
@@ -200,7 +200,7 @@
|
||||
# Allow the server to already be running.
|
||||
- "sccache --start-server || :"
|
||||
- sccache --show-stats
|
||||
- .gitlab/ci/pre_build.sh
|
||||
- .gitlab/ci/pre_configure.sh
|
||||
- ctest -VV -S .gitlab/ci/ctest_configure.cmake
|
||||
- ctest -VV -S .gitlab/ci/ctest_build.cmake
|
||||
- .gitlab/ci/post_build.sh
|
||||
|
@@ -443,7 +443,7 @@
|
||||
- Invoke-Expression -Command .gitlab/ci/vcvarsall.ps1
|
||||
- sccache --start-server
|
||||
- sccache --show-stats
|
||||
- (& "$pwsh" -File ".gitlab/ci/pre_build.ps1")
|
||||
- (& "$pwsh" -File ".gitlab/ci/pre_configure.ps1")
|
||||
- ctest -VV -S .gitlab/ci/ctest_configure.cmake
|
||||
- ctest -VV -S .gitlab/ci/ctest_build.cmake
|
||||
- (& "$pwsh" -File ".gitlab/ci/post_build.ps1")
|
||||
|
Reference in New Issue
Block a user