forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
100 lines (91 loc) · 2.28 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: $(BuildID)
trigger:
branches:
include:
- 'master'
# Release branches
- '0.*'
variables:
MESON_FIXED_NINJA: 1
CI: 1
jobs:
- job: vs2015
pool:
vmImage: vs2015-win2012r2
strategy:
matrix:
vc2015x86ninja:
arch: x86
compiler: msvc2015
backend: ninja
vc2015x86vs:
arch: x86
compiler: msvc2015
backend: vs2015
steps:
- template: ci/azure-steps.yml
- job: vs2017
pool:
vmImage: VS2017-Win2016
strategy:
matrix:
vc2017x64ninja:
arch: x64
compiler: msvc2017
backend: ninja
vc2017x64vs:
arch: x64
compiler: msvc2017
backend: vs2017
clangclx64ninja:
arch: x64
compiler: clang-cl
backend: ninja
steps:
- template: ci/azure-steps.yml
- job: cygwin
pool:
vmImage: VS2017-Win2016
strategy:
matrix:
gccx64ninja: {}
variables:
CYGWIN_ROOT: $(System.Workfolder)\cygwin
CYGWIN_MIRROR: http://cygwin.mirror.constant.com
steps:
- script: |
choco install cygwin --params="/InstallDir:%CYGWIN_ROOT%"
displayName: Install Cygwin
- script: |
%CYGWIN_ROOT%\cygwinsetup.exe -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -g -P ^
gcc-objc++,^
gcc-objc,^
git,^
gobject-introspection,^
libboost-devel,^
libglib2.0-devel,^
libgtk3-devel,^
ninja,^
python3-pip,^
vala,^
zlib-devel
displayName: Install Dependencies
- script: |
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
env.exe -- python3 run_tests.py --backend=ninja
displayName: Run Tests
- task: CopyFiles@2
condition: not(canceled())
inputs:
contents: 'meson-test-run.*'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
artifactName: $(System.JobName)
# publishing artifacts from PRs from a fork is currently blocked
condition: and(eq(variables['system.pullrequest.isfork'], false), not(canceled()))
- task: PublishTestResults@2
condition: not(canceled())
inputs:
testResultsFiles: meson-test-run.xml
testRunTitle: $(System.JobName)