diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-10-11 19:35:07 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-10-11 21:07:51 +0200 |
commit | 4628461383855610f87c8df5c64535f521056a32 (patch) | |
tree | 7ef7e671d1b2f35cf1e81b4b22d24bb9426bb4f0 /azure-pipelines.yml | |
parent | e7adaff786bf4bed30be39a8a28edb9f65888b12 (diff) | |
download | qpdf-4628461383855610f87c8df5c64535f521056a32.tar.zst |
Set up Azure Pipelines
Use free Azure Pipelines to do Linux, Windows, and Mac build and test
and to generate Windows binary distributions.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..c5d8d5ba --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,62 @@ +jobs: +- job: Linux + pool: + vmImage: ubuntu-16.04 + steps: + - script: azure-pipelines/build-linux + displayName: 'Generate, build, and test' + - task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: '$(System.DefaultWorkingDirectory)/distfiles.zip' + artifactName: distfiles + displayName: 'Upload extra distribution files' +- job: Windows + pool: + vmImage: vs2017-win2016 + strategy: + matrix: + msvc32: + wordsize: 32 + tool: msvc + msvc64: + wordsize: 64 + tool: msvc + mingw32: + wordsize: 32 + tool: mingw + mingw64: + wordsize: 64 + tool: mingw + maxParallel: 4 + steps: + - bash: git config --global core.autocrlf input + displayName: 'Disable git autocrlf' + - checkout: self + displayName: 'Get sources' + - task: DownloadBuildArtifacts@0 + displayName: 'Download distribution files' + inputs: + artifactName: distfiles + downloadPath: $(System.DefaultWorkingDirectory) + - script: azure-pipelines/build-windows.bat $(wordsize) $(tool) + displayName: 'Build, test, generate binary distributions' + - task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: '$(System.DefaultWorkingDirectory)/installers' + artifactName: installers + displayName: 'Upload binary distributions' + dependsOn: Linux + condition: succeeded() +- job: macOS + pool: + vmImage: macOS-10.13 + steps: + - task: DownloadBuildArtifacts@0 + displayName: 'Download distribution files' + inputs: + artifactName: distfiles + downloadPath: $(System.DefaultWorkingDirectory) + - script: azure-pipelines/build-mac + displayName: 'Mac build and test' + dependsOn: Linux + condition: succeeded() |