diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-19 23:22:12 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-11-21 20:53:48 +0200 |
commit | 5e91eb3d0c6750bc70504c02ca942f69aeb46178 (patch) | |
tree | faceafdd1c2a67c1307af5f546a337a136076b88 /azure-pipelines.yml | |
parent | 4178267bfef82a6ebf35dc353bb7915c2d3fda94 (diff) | |
download | meson-5e91eb3d0c6750bc70504c02ca942f69aeb46178.tar.gz |
CI: port cygwin job from appveyor to azure-pipelines
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9cc01a1ba..f42c6c858 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -51,3 +51,50 @@ jobs: 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) |