| 1 |
name: $(BuildID)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r) |
| 2 |
resources: |
| 3 |
- repo: self |
| 4 |
clean: true |
| 5 |
jobs: |
| 6 |
- job: windowsx86 |
| 7 |
displayName: 'Build Windows x86' |
| 8 |
pool: |
| 9 |
name: Hosted VS2017 |
| 10 |
demands: |
| 11 |
- Cmd |
| 12 |
- msbuild |
| 13 |
- visualstudio |
| 14 |
|
| 15 |
steps: |
| 16 |
- task: BatchScript@1 |
| 17 |
displayName: 'Setup VS vars' |
| 18 |
inputs: |
| 19 |
filename: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"' |
| 20 |
modifyEnvironment: true |
| 21 |
|
| 22 |
- task: CMake@1 |
| 23 |
displayName: CMake |
| 24 |
inputs: |
| 25 |
cmakeArgs: '.. -Drun_int_tests:bool=ON -G "Visual Studio 15 2017"' |
| 26 |
|
| 27 |
- task: VSBuild@1 |
| 28 |
displayName: 'Build solution build\*.sln (RelWithDebInfo)' |
| 29 |
inputs: |
| 30 |
solution: 'build\*.sln' |
| 31 |
configuration: RelWithDebInfo |
| 32 |
clean: true |
| 33 |
maximumCpuCount: true |
| 34 |
|
| 35 |
- task: CmdLine@1 |
| 36 |
displayName: 'Run ctest (RelWithDebInfo)' |
| 37 |
inputs: |
| 38 |
filename: ctest |
| 39 |
arguments: '-C "RelWithDebInfo" -V --output-on-failure' |
| 40 |
workingFolder: build |
| 41 |
|
| 42 |
- job: windowsx64 |
| 43 |
displayName: 'Build Windows x64' |
| 44 |
pool: |
| 45 |
name: Hosted VS2017 |
| 46 |
demands: |
| 47 |
- Cmd |
| 48 |
- msbuild |
| 49 |
- visualstudio |
| 50 |
|
| 51 |
steps: |
| 52 |
- task: BatchScript@1 |
| 53 |
displayName: 'Setup VS vars' |
| 54 |
inputs: |
| 55 |
filename: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"' |
| 56 |
modifyEnvironment: true |
| 57 |
|
| 58 |
- task: CMake@1 |
| 59 |
displayName: CMake |
| 60 |
inputs: |
| 61 |
cmakeArgs: '.. -Drun_int_tests:bool=ON -G "Visual Studio 15 2017 Win64"' |
| 62 |
|
| 63 |
- task: VSBuild@1 |
| 64 |
displayName: 'Build solution build\*.sln (Debug)' |
| 65 |
inputs: |
| 66 |
solution: 'build\*.sln' |
| 67 |
configuration: Debug |
| 68 |
clean: true |
| 69 |
maximumCpuCount: true |
| 70 |
|
| 71 |
- task: CmdLine@1 |
| 72 |
displayName: 'Run ctest (Debug)' |
| 73 |
inputs: |
| 74 |
filename: ctest |
| 75 |
arguments: '-C "Debug" -V --output-on-failure' |
| 76 |
workingFolder: build |
| 77 |
|
| 78 |
|
| 79 |
- job: ubuntu1604 |
| 80 |
displayName: 'Build Linux Ubuntu 1604' |
| 81 |
pool: |
| 82 |
name: Hosted Ubuntu 1604 |
| 83 |
|
| 84 |
steps: |
| 85 |
- task: CMake@1 |
| 86 |
displayName: CMake |
| 87 |
inputs: |
| 88 |
cmakeArgs: '.. -Drun_int_tests:bool=ON' |
| 89 |
|
| 90 |
- script: 'make -j$(nproc)' |
| 91 |
workingDirectory: build |
| 92 |
displayName: make |
| 93 |
|
| 94 |
- task: CmdLine@1 |
| 95 |
displayName: 'Run ctest' |
| 96 |
inputs: |
| 97 |
filename: ctest |
| 98 |
arguments: '-C "Debug" -V --output-on-failure -j $(nproc)' |
| 99 |
workingFolder: build |
| 100 |
|