generated from AcademySoftwareFoundation/aswf-sample-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
79 lines (71 loc) · 2.03 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
76
77
78
79
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ASWF Sample Project
#
# A simple multi-platform Azure Pipelines definition to build, run test suite
# and upload results to test dashboard. Using 'matrix' would reduce duplication
# but there's no such thing as macOS containers. Could move the steps to a separate
# YAML file.
trigger:
- master
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-18.04'
container: aswf/ci-base:2020
steps:
- script: |
mkdir build
cd build
cmake ..
cmake --build .
displayName: Build
- script: |
ctest --verbose -S ../CTestScript.cmake
env:
CTEST_SOURCE_DIRECTORY: $(Build.SourcesDirectory)
CTEST_BUILD_NAME: $(Build.BuildNumber)
CTEST_SITE: $(Agent.MachineName)
CTEST_CDASH_AUTH_TOKEN: $(CTEST_CDASH_AUTH_TOKEN)
workingDirectory: build
displayName: Test
# Only the win1803 builders aka Windows Server Core 2016 SAC 1803 currently supports containers,
# and you must make sure your containers are built on the same Windows build (aka 1803).
- job: Windows
pool:
vmImage: 'win1803'
container: panisset/buildtools2019:latest
steps:
- script: |
mkdir build
cd build
cmake ..
cmake --build .
displayName: Build
- script: |
ctest --verbose -S ../CTestScript.cmake
env:
CTEST_SOURCE_DIRECTORY: $(Build.SourcesDirectory)
CTEST_BUILD_NAME: $(Build.BuildNumber)
CTEST_SITE: $(Agent.MachineName)
CTEST_CDASH_AUTH_TOKEN: $(CTEST_CDASH_AUTH_TOKEN)
workingDirectory: build
displayName: Test
- job: macOS
pool:
vmImage: 'macOS-latest'
steps:
- script: |
mkdir build
cd build
cmake ..
cmake --build .
displayName: Build
- script: |
ctest --verbose -S ../CTestScript.cmake
env:
CTEST_SOURCE_DIRECTORY: $(Build.SourcesDirectory)
CTEST_BUILD_NAME: $(Build.BuildNumber)
CTEST_SITE: $(Agent.MachineName)
CTEST_CDASH_AUTH_TOKEN: $(CTEST_CDASH_AUTH_TOKEN)
workingDirectory: build
displayName: Test