name: $(BuildID) trigger: branches: include: - 'master' # Release branches - '0.*' variables: CI: 1 jobs: - job: vs2017 timeoutInMinutes: 120 pool: vmImage: VS2017-Win2016 strategy: matrix: vc2017x86ninja: arch: x86 compiler: msvc2017 backend: ninja MESON_RSP_THRESHOLD: 0 vc2017x64vs: arch: x64 compiler: msvc2017 backend: vs2017 clangclx64ninja: arch: x64 compiler: clang-cl backend: ninja steps: - task: UsePythonVersion@0 inputs: versionSpec: '3.6' addToPath: true architecture: 'x64' - template: ci/azure-steps.yml - job: vs2019 timeoutInMinutes: 120 pool: vmImage: windows-2019 strategy: matrix: vc2019x64ninja: arch: x64 compiler: msvc2019 backend: ninja vc2019x64vs: arch: x64 compiler: msvc2019 backend: vs2019 vc2019arm64ninjacross: arch: arm64 compiler: msvc2019 backend: ninja extraargs: --cross arm64cl.txt --cross-only steps: - task: UsePythonVersion@0 inputs: versionSpec: '3.7' addToPath: true architecture: 'x64' - template: ci/azure-steps.yml - job: cygwin timeoutInMinutes: 120 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-fortran,^ gcc-objc++,^ gcc-objc,^ git,^ gobject-introspection,^ gtk-doc,^ libarchive13,^ libboost-devel,^ libglib2.0-devel,^ libgtk3-devel,^ libjsoncpp19,^ librhash0,^ libuv1,^ libxml2,^ libxml2-devel,^ libxslt,^ libxslt-devel,^ ninja,^ python2-devel,^ python3-devel,^ python3-libxml2,^ python3-libxslt,^ python38-pip,^ vala,^ wget,^ cmake,^ zlib-devel displayName: Install Dependencies - script: | set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32 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)" - script: | set BOOST_ROOT= set PATH=%CYGWIN_ROOT%\bin;%SYSTEMROOT%\system32 set SKIP_STATIC_BOOST=1 env.exe -- python3 run_tests.py --backend=ninja # Cygwin's static boost installation is broken (some static library # variants such as boost_thread are not present) 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)