2018-10-07 01:09:56 +08:00
|
|
|
name: $(BuildID)
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- 'master'
|
2018-11-09 07:53:58 +08:00
|
|
|
# Release branches
|
|
|
|
- '0.*'
|
2018-10-07 01:09:56 +08:00
|
|
|
|
|
|
|
variables:
|
|
|
|
CI: 1
|
|
|
|
|
|
|
|
jobs:
|
2019-08-01 05:48:25 +08:00
|
|
|
|
2018-10-07 01:09:56 +08:00
|
|
|
- job: vs2017
|
2020-07-12 18:44:22 +08:00
|
|
|
timeoutInMinutes: 120
|
2018-10-07 01:09:56 +08:00
|
|
|
pool:
|
|
|
|
vmImage: VS2017-Win2016
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-02-26 05:06:29 +08:00
|
|
|
vc2017x86ninja:
|
|
|
|
arch: x86
|
2018-10-07 01:09:56 +08:00
|
|
|
compiler: msvc2017
|
|
|
|
backend: ninja
|
2020-06-02 10:05:41 +08:00
|
|
|
MESON_RSP_THRESHOLD: 0
|
2018-10-07 01:09:56 +08:00
|
|
|
vc2017x64vs:
|
|
|
|
arch: x64
|
|
|
|
compiler: msvc2017
|
|
|
|
backend: vs2017
|
2018-10-19 06:06:58 +08:00
|
|
|
clangclx64ninja:
|
|
|
|
arch: x64
|
|
|
|
compiler: clang-cl
|
|
|
|
backend: ninja
|
2018-10-07 01:09:56 +08:00
|
|
|
|
|
|
|
steps:
|
2019-03-02 02:49:17 +08:00
|
|
|
- task: UsePythonVersion@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '3.5'
|
|
|
|
addToPath: true
|
|
|
|
architecture: 'x64'
|
2018-10-07 01:09:56 +08:00
|
|
|
- template: ci/azure-steps.yml
|
2018-11-20 06:22:12 +08:00
|
|
|
|
2019-03-12 13:36:33 +08:00
|
|
|
- job: vs2019
|
2020-07-12 18:44:22 +08:00
|
|
|
timeoutInMinutes: 120
|
2019-03-12 13:36:33 +08:00
|
|
|
pool:
|
|
|
|
vmImage: windows-2019
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
vc2019x64ninja:
|
|
|
|
arch: x64
|
|
|
|
compiler: msvc2019
|
|
|
|
backend: ninja
|
|
|
|
vc2019x64vs:
|
|
|
|
arch: x64
|
|
|
|
compiler: msvc2019
|
|
|
|
backend: vs2019
|
2018-12-05 04:12:20 +08:00
|
|
|
vc2019arm64ninjacross:
|
|
|
|
arch: arm64
|
|
|
|
compiler: msvc2019
|
|
|
|
backend: ninja
|
|
|
|
extraargs: --cross arm64cl.txt --cross-only
|
2019-03-12 13:36:33 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: UsePythonVersion@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: '3.7'
|
|
|
|
addToPath: true
|
|
|
|
architecture: 'x64'
|
|
|
|
- template: ci/azure-steps.yml
|
|
|
|
|
2018-11-20 06:22:12 +08:00
|
|
|
- job: cygwin
|
2020-06-25 05:50:42 +08:00
|
|
|
timeoutInMinutes: 120
|
2018-11-20 06:22:12 +08:00
|
|
|
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 ^
|
2019-04-12 01:12:11 +08:00
|
|
|
gcc-fortran,^
|
2018-11-20 06:22:12 +08:00
|
|
|
gcc-objc++,^
|
|
|
|
gcc-objc,^
|
|
|
|
git,^
|
|
|
|
gobject-introspection,^
|
2020-06-04 22:54:22 +08:00
|
|
|
gtk-doc,^
|
2019-04-19 16:08:09 +08:00
|
|
|
libarchive13,^
|
2018-11-20 06:22:12 +08:00
|
|
|
libboost-devel,^
|
|
|
|
libglib2.0-devel,^
|
|
|
|
libgtk3-devel,^
|
2019-04-19 16:08:09 +08:00
|
|
|
libjsoncpp19,^
|
|
|
|
librhash0,^
|
|
|
|
libuv1,^
|
2020-03-29 23:28:02 +08:00
|
|
|
libxml2,^
|
2020-06-03 02:22:23 +08:00
|
|
|
libxml2-devel,^
|
|
|
|
libxslt,^
|
|
|
|
libxslt-devel,^
|
2018-11-20 06:22:12 +08:00
|
|
|
ninja,^
|
2019-09-20 02:13:21 +08:00
|
|
|
python2-devel,^
|
|
|
|
python3-devel,^
|
2020-06-03 02:22:23 +08:00
|
|
|
python3-libxml2,^
|
|
|
|
python3-libxslt,^
|
2019-09-20 02:13:21 +08:00
|
|
|
python36-pip,^
|
2018-11-20 06:22:12 +08:00
|
|
|
vala,^
|
2019-04-19 16:08:09 +08:00
|
|
|
wget,^
|
2019-07-25 15:50:07 +08:00
|
|
|
cmake,^
|
2018-11-20 06:22:12 +08:00
|
|
|
zlib-devel
|
|
|
|
displayName: Install Dependencies
|
2019-04-19 16:08:09 +08:00
|
|
|
- script: |
|
2019-09-20 02:13:21 +08:00
|
|
|
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
|
2020-08-15 16:11:41 +08:00
|
|
|
env.exe -- python3 -m pip --disable-pip-version-check install gcovr pefile jsonschema
|
|
|
|
displayName: "pip install gcovr pefile jsonschema (pytest-xdist broken, skipped: CHECK ME AGAIN)"
|
2018-11-20 06:22:12 +08:00
|
|
|
- script: |
|
2019-03-17 23:20:56 +08:00
|
|
|
set BOOST_ROOT=
|
2018-11-20 06:22:12 +08:00
|
|
|
set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32
|
2020-02-09 01:09:04 +08:00
|
|
|
set SKIP_STATIC_BOOST=1
|
2019-02-26 07:32:56 +08:00
|
|
|
env.exe -- python3 run_tests.py --backend=ninja
|
2020-02-09 01:09:04 +08:00
|
|
|
# Cygwin's static boost installation is broken (some static library
|
|
|
|
# variants such as boost_thread are not present)
|
2018-11-20 06:22:12 +08:00
|
|
|
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)
|
2018-11-22 04:00:08 +08:00
|
|
|
|
2018-11-29 18:46:40 +08:00
|
|
|
- job: msys2
|
2018-11-22 04:00:08 +08:00
|
|
|
pool:
|
|
|
|
vmImage: VS2017-Win2016
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
gccx86ninja:
|
|
|
|
MSYSTEM: MINGW32
|
|
|
|
MSYS2_ARCH: i686
|
2020-09-23 23:08:02 +08:00
|
|
|
MSYS2_CURSES: ncurses
|
2018-11-29 18:46:40 +08:00
|
|
|
compiler: gcc
|
2018-11-22 04:00:08 +08:00
|
|
|
gccx64ninja:
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
MSYS2_ARCH: x86_64
|
2020-09-23 23:08:02 +08:00
|
|
|
MSYS2_CURSES: pdcurses
|
2020-06-02 10:05:41 +08:00
|
|
|
MESON_RSP_THRESHOLD: 0
|
2018-11-29 18:46:40 +08:00
|
|
|
compiler: gcc
|
|
|
|
clangx64ninja:
|
|
|
|
MSYSTEM: MINGW64
|
|
|
|
MSYS2_ARCH: x86_64
|
2020-09-23 23:08:02 +08:00
|
|
|
MSYS2_CURSES:
|
2018-11-29 18:46:40 +08:00
|
|
|
compiler: clang
|
2018-11-22 04:00:08 +08:00
|
|
|
variables:
|
|
|
|
MSYS2_ROOT: $(System.Workfolder)\msys64
|
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
choco install msys2 --params="/InstallDir:%MSYS2_ROOT% /NoUpdate /NoPath"
|
|
|
|
displayName: Install MSYS2
|
|
|
|
- script: |
|
|
|
|
set PATH=%MSYS2_ROOT%\usr\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
|
2018-11-29 18:46:40 +08:00
|
|
|
if %compiler%==gcc ( set "TOOLCHAIN=mingw-w64-$(MSYS2_ARCH)-toolchain" ) else ( set "TOOLCHAIN=mingw-w64-$(MSYS2_ARCH)-clang" )
|
2018-11-27 14:53:33 +08:00
|
|
|
%MSYS2_ROOT%\usr\bin\pacman --noconfirm --needed -S ^
|
|
|
|
base-devel ^
|
|
|
|
git ^
|
|
|
|
mercurial ^
|
|
|
|
mingw-w64-$(MSYS2_ARCH)-cmake ^
|
2020-03-29 23:28:02 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-lcov ^
|
|
|
|
mingw-w64-$(MSYS2_ARCH)-libxml2 ^
|
2019-02-05 21:31:05 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-ninja ^
|
2018-11-29 18:46:40 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-pkg-config ^
|
2018-11-27 14:53:33 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-python2 ^
|
|
|
|
mingw-w64-$(MSYS2_ARCH)-python3 ^
|
2020-06-03 02:38:36 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-python3-lxml ^
|
2018-11-27 14:53:33 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-python3-setuptools ^
|
2020-01-13 01:19:43 +08:00
|
|
|
mingw-w64-$(MSYS2_ARCH)-python3-pip ^
|
2018-11-29 18:46:40 +08:00
|
|
|
%TOOLCHAIN%
|
2020-09-23 23:08:02 +08:00
|
|
|
if not "%MSYS2_CURSES%" == "" ( %MSYS2_ROOT%\usr\bin\pacman --noconfirm --needed -S mingw-w64-$(MSYS2_ARCH)-$(MSYS2_CURSES) )
|
2020-03-29 23:28:02 +08:00
|
|
|
%MSYS2_ROOT%\usr\bin\bash -lc "python3 -m pip --disable-pip-version-check install gcovr jsonschema pefile"
|
2018-11-22 04:00:08 +08:00
|
|
|
displayName: Install Dependencies
|
|
|
|
- script: |
|
2019-03-17 23:20:56 +08:00
|
|
|
set BOOST_ROOT=
|
2018-11-22 04:00:08 +08:00
|
|
|
set PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
|
|
|
|
set PATHEXT=%PATHEXT%;.py
|
2019-04-12 01:12:11 +08:00
|
|
|
if %compiler%==clang ( set CC=clang && set CXX=clang++ && set OBJC=clang && set OBJCXX=clang++ )
|
2018-11-22 04:00:08 +08:00
|
|
|
%MSYS2_ROOT%\usr\bin\bash -lc "MSYSTEM= python3 run_tests.py --backend=ninja"
|
|
|
|
env:
|
|
|
|
CHERE_INVOKING: yes
|
|
|
|
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)
|