-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
35 lines (35 loc) · 1.04 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
trigger:
- master
jobs:
- job: 'MacOS'
pool:
vmImage: 'macOS-10.14'
steps:
- script: brew install ninja lcov
displayName: Installing ninja build system
- script: |
mkdir build
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Coverage
ninja -C build coverage && bash <(curl -s https://codecov.io/bash) -f build/coverage_out.info.cleaned
./build/unit_tests.x --gtest_output=xml:TEST-gtest.xml
displayName: Coverage
- task: PublishTestResults@2
inputs:
testRunner: 'JUnit'
failTaskOnFailedTests: true
- job: 'Windows'
pool:
vmImage: 'vs2017-win2016'
steps:
- script: choco install ninja
displayName: Installing ninja build system
- script: |
mkdir build
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug --target unit_tests.x -- -j 6
cd build && unit_tests.x.exe --gtest_output=xml:TEST-gtest.xml
displayName: Testing
- task: PublishTestResults@2
inputs:
testRunner: 'JUnit'
failTaskOnFailedTests: true