-
Notifications
You must be signed in to change notification settings - Fork 13
/
azure-pipelines.yml
75 lines (70 loc) · 2.13 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# https://aka.ms/yaml
trigger:
- master
- develop
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
sudo apt-get install -y zlib1g-dev libbz2-dev liblzma-dev libcmocka-dev
displayName: 'Install dependencies'
- task: CMake@1
inputs:
cmakeArgs: '-DBUILD_INTEGRATION_TESTS=ON -DBUILD_UNIT_TESTS=ON ..'
displayName: 'Generate CMake cache'
- task: CMake@1
inputs:
cmakeArgs: '--build .'
displayName: 'Build'
- script: ctest --output-on-failure --no-compress-output -T test
workingDirectory: build
displayName: Run tests
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: build/Testing/*/Test.xml
- job: Windows
pool:
vmImage: 'windows-latest'
steps:
- script: vcpkg install cmocka --triplet x64-windows
displayName: Install dependencies
- task: CMake@1
inputs:
cmakeArgs: '-DBUILD_INTEGRATION_TESTS=ON -DBUILD_UNIT_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ..'
displayName: 'Generate CMake cache'
- task: CMake@1
inputs:
cmakeArgs: '--build . --config Release'
displayName: 'Build'
- script: ctest --output-on-failure --no-compress-output --extra-verbose -C Release -T test
workingDirectory: build
displayName: Run tests
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: build/Testing/*/Test.xml
- job: MacOS
pool:
vmImage: 'macOS-latest'
steps:
- script: |
brew install cmocka
displayName: 'Install dependencies'
- task: CMake@1
inputs:
cmakeArgs: '-DBUILD_INTEGRATION_TESTS=ON -DBUILD_UNIT_TESTS=ON ..'
displayName: 'Generate CMake cache'
- task: CMake@1
inputs:
cmakeArgs: '--build .'
displayName: 'Build'
- script: ctest --output-on-failure --no-compress-output -T test
workingDirectory: build
displayName: Run tests
- task: PublishTestResults@2
inputs:
testResultsFormat: 'cTest'
testResultsFiles: build/Testing/*/Test.xml