| # Refer: https://aka.ms/yaml | # Refer: https://aka.ms/yaml | ||||
| jobs: | jobs: | ||||
| - job: Windows_MSVC_VS2017 | |||||
| pool: | |||||
| vmImage: vs2017-win2016 | |||||
| steps: | |||||
| - script: | | |||||
| echo Loading VS environment | |||||
| call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1 | |||||
| echo Executing build/test script | |||||
| python -u tools/build.py --cxx cl.exe --test --static || exit 1 | |||||
| displayName: Build and Run Unit Tests | |||||
| - publish: _build/ddslim.exe | |||||
| artifact: DDSLiM Executable - Windows VS2017 | |||||
| - script: | | |||||
| echo Loading VS environment | |||||
| call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1 | |||||
| python -u tools/test.py --exe _build/ddslim.exe -T:msvc || exit 1 | |||||
| displayName: Smoke Tests | |||||
| - job: Windows_MSVC_VS2019 | - job: Windows_MSVC_VS2019 | ||||
| pool: | pool: | ||||
| vmImage: windows-2019 | vmImage: windows-2019 |