Skip to content

Commit

Permalink
cherry-pick azure yml improvements (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Necktschnagge authored Nov 12, 2023
1 parent 6847e63 commit c177937
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ stages:

jobs:
- job: Qt_5
timeoutInMinutes: 30
strategy:
matrix:
ubuntu_22_04:
Expand All @@ -27,11 +28,11 @@ stages:
the_name: "Azure Pipelines"

mac_12:
imageName: "macos-12"
imageName: "macOS-12"
the_name: "Azure Pipelines"

mac_11:
imageName: "macos-11"
mac_13:
imageName: "macOS-13"
the_name: "Azure Pipelines"

windows_2022:
Expand Down Expand Up @@ -77,28 +78,35 @@ stages:
- script: cmake -S . -B ./build/ -DUSE_QT6:BOOL=FALSE
displayName: "CMake: Create Project (Linux)"
condition: and(succeeded(), eq( variables['Agent.OS'], 'Linux'))
- script: cmake --build ./build --verbose
displayName: "CMake: Compile and Link"
- script: cmake --build ./build --config Debug --verbose
displayName: "CMake: Compile and Link (Debug)"
condition: succeeded()
- script: cmake --build ./build --config Release --verbose
displayName: "CMake: Compile and Link (Release)"
condition: succeeded()
- script: ./build/test/TEST-$(project_name)
displayName: "Run Tests on Linux / Mac OS"
condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT'))
- script: .\build\test\Debug\TEST-$(project_name).exe
- script: tree /F .\build
displayName: "View tree of 'build\\' on Windows"
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))
- script: .\build\test\Release\TEST-$(project_name).exe
displayName: "Run Tests on Windows"
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))
- job: Qt_6
timeoutInMinutes: 30
strategy:
matrix:
ubuntu_22_04:
imageName: "ubuntu-22.04"
the_name: "Azure Pipelines"

mac_12:
imageName: "macos-12"
imageName: "macOS-12"
the_name: "Azure Pipelines"

mac_11:
imageName: "macos-11"
mac_13:
imageName: "macOS-13"
the_name: "Azure Pipelines"

windows_2022:
Expand Down Expand Up @@ -141,12 +149,18 @@ stages:
- script: cmake -S . -B ./build/
displayName: "CMake: Create Project (Darwin / Linux)"
condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT'))
- script: cmake --build ./build --verbose
displayName: "CMake: Compile and Link"
- script: cmake --build ./build --config Debug --verbose
displayName: "CMake: Compile and Link (Debug)"
condition: succeeded()
- script: cmake --build ./build --config Release --verbose
displayName: "CMake: Compile and Link (Release)"
condition: succeeded()
- script: ./build/test/TEST-$(project_name)
displayName: "Run Tests on Linux / Mac OS"
condition: and(succeeded(), ne( variables['Agent.OS'], 'Windows_NT'))
- script: .\build\test\Debug\TEST-$(project_name).exe
- script: tree /F .\build
displayName: "View tree of 'build\\' on Windows"
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))
- script: .\build\test\Release\TEST-$(project_name).exe
displayName: "Run Tests on Windows"
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))

0 comments on commit c177937

Please sign in to comment.