From c132646b974de5641b7c3da2343fa5e44ddd8f91 Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Mon, 13 Jul 2020 01:44:08 +0100 Subject: [PATCH] Time commands --- .gitlab-ci.yml | 80 +++++++++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 36 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cfb304af70..3ae2401624 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,30 +50,34 @@ MacOS: tags: - windows before_script: - - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - - choco install git --force --params "/GitAndUnixToolsOnPath" -y - - choco install 7zip -y - - choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y - - choco install vswhere -y - - choco install ninja -y - - choco install python -y - - refreshenv + - Get-Date -Format "HH:mm:ss" + - Measure-Command -Expression { Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | Out-Default } + - Measure-Command -Expression { choco install git --force --params "/GitAndUnixToolsOnPath" -y | Out-Default } + - Measure-Command -Expression { choco install 7zip -y | Out-Default } + - Measure-Command -Expression { choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y | Out-Default } + - Measure-Command -Expression { choco install vswhere -y | Out-Default } + - Measure-Command -Expression { choco install ninja -y | Out-Default } + - Measure-Command -Expression { choco install python -y | Out-Default } + - Measure-Command -Expression { refreshenv | Out-Default } + - Get-Date -Format "HH:mm:ss" stage: build script: - - $time = (Get-Date -Format "HH:mm:ss") - - echo ${time} - - echo "started by ${GITLAB_USER_NAME}" - - sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V -N - - cd MSVC2019_64_Ninja - - .\ActivateMSVC.ps1 - - cmake --build . --config $config - - cd $config + - Get-Date -Format "HH:mm:ss" + - Measure-Command -Expression { $time = (Get-Date -Format "HH:mm:ss") | Out-Default } + - Measure-Command -Expression { echo ${time} | Out-Default } + - Measure-Command -Expression { echo "started by ${GITLAB_USER_NAME}" | Out-Default } + - Measure-Command -Expression { sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V -N | Out-Default } + - Measure-Command -Expression { cd MSVC2019_64_Ninja | Out-Default } + - Measure-Command -Expression { .\ActivateMSVC.ps1 | Out-Default } + - Measure-Command -Expression { cmake --build . --config $config | Out-Default } + - Measure-Command -Expression { cd $config | Out-Default } - | if (Get-ChildItem -Recurse *.pdb) { - 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip '*.pdb' - Get-ChildItem -Recurse *.pdb | Remove-Item + Measure-Command -Expression { 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip '*.pdb' | Out-Default } + Measure-Command -Expression { Get-ChildItem -Recurse *.pdb | Remove-Item | Out-Default } } - - 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}.zip '*' + - Measure-Command -Expression { 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}.zip '*' | Out-Default } + - Get-Date -Format "HH:mm:ss" cache: key: ninja-v2 paths: @@ -115,28 +119,32 @@ Windows_Ninja_RelWithDebInfo: tags: - windows before_script: - - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - - choco install git --force --params "/GitAndUnixToolsOnPath" -y - - choco install 7zip -y - - choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y - - choco install vswhere -y - - choco install python -y - - refreshenv + - Get-Date -Format "HH:mm:ss" + - Measure-Command -Expression { Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | Out-Default } + - Measure-Command -Expression { choco install git --force --params "/GitAndUnixToolsOnPath" -y | Out-Default } + - Measure-Command -Expression { choco install 7zip -y | Out-Default } + - Measure-Command -Expression { choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y | Out-Default } + - Measure-Command -Expression { choco install vswhere -y | Out-Default } + - Measure-Command -Expression { choco install python -y | Out-Default } + - Measure-Command -Expression { refreshenv | Out-Default } + - Get-Date -Format "HH:mm:ss" stage: build script: - - $time = (Get-Date -Format "HH:mm:ss") - - echo ${time} - - echo "started by ${GITLAB_USER_NAME}" - - sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V - - cd MSVC2019_64 - - cmake --build . --config $config - - cd $config + - Get-Date -Format "HH:mm:ss" + - Measure-Command -Expression { $time = (Get-Date -Format "HH:mm:ss") | Out-Default } + - Measure-Command -Expression { echo ${time} | Out-Default } + - Measure-Command -Expression { echo "started by ${GITLAB_USER_NAME}" | Out-Default } + - Measure-Command -Expression { sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V | Out-Default } + - Measure-Command -Expression { cd MSVC2019_64 | Out-Default } + - Measure-Command -Expression { cmake --build . --config $config | Out-Default } + - Measure-Command -Expression { cd $config | Out-Default } - | if (Get-ChildItem -Recurse *.pdb) { - 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip '*.pdb' - Get-ChildItem -Recurse *.pdb | Remove-Item + Measure-Command -Expression { 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip '*.pdb' | Out-Default } + Measure-Command -Expression { Get-ChildItem -Recurse *.pdb | Remove-Item | Out-Default } } - - 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}.zip '*' + - Measure-Command -Expression { 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}.zip '*' | Out-Default } + - Get-Date -Format "HH:mm:ss" cache: key: msbuild-v2 paths: