1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 19:39:41 +00:00

Time commands

This commit is contained in:
AnyOldName3 2020-07-13 01:44:08 +01:00
parent 0d1fb31358
commit c132646b97

View file

@ -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: