diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2020-07-18 01:27:21 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2020-07-18 01:27:21 +0300 |
commit | 8eef7bb6afe9350ee25a440edb20d3bec0a95c99 (patch) | |
tree | 169ac15c04966b10b8c6c4f68e00b17cb4a84243 /.azure-pipelines.yml | |
parent | c182bc6db05736dd0f801187e8998cb7da2756f8 (diff) |
CI(azure-pipelines): templatize steps
Diffstat (limited to '.azure-pipelines.yml')
-rw-r--r-- | .azure-pipelines.yml | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 8607a3384..51a5cb56d 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -11,63 +11,19 @@ jobs: variables: MUMBLE_ENVIRONMENT_VERSION: 'win64-static-1.4.x-2020-05-27-ecb3c64-1151' steps: - - script: git submodule --quiet update --init --recursive - displayName: 'Fetch submodules' - - task: Cache@2 - inputs: - key: '"$(MUMBLE_ENVIRONMENT_VERSION)"' - path: '$(MUMBLE_ENVIRONMENT_PATH)' - displayName: 'Environment storage' - - powershell: .ci/azure-pipelines/install-environment_windows.ps1 - displayName: 'Install build environment' - - script: .ci/azure-pipelines/build_windows.bat - displayName: 'Build' - - powershell: | - cd $(Build.BinariesDirectory) - .\Create-Win32InstallerMUI.ps1 -PackageName 'Mumble' -Version '1.4.0' - cp *.sha* $(Build.ArtifactStagingDirectory) - cp *.msi $(Build.ArtifactStagingDirectory) - cp *.pdb $(Build.ArtifactStagingDirectory) - displayName: Build installer - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: '$(Build.ArtifactStagingDirectory)' - artifactName: WindowsInstaller + - template: .ci/azure-pipelines/steps_windows.yml - job: Linux pool: vmImage: 'ubuntu-16.04' steps: - - script: git submodule --quiet update --init --recursive - displayName: 'Fetch submodules' - - script: .ci/azure-pipelines/install-environment_linux.bash - displayName: 'Install build environment' - - script: .ci/azure-pipelines/build_linux.bash - displayName: 'Build' - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: '$(Build.ArtifactStagingDirectory)' - artifactName: AppImage + - template: .ci/azure-pipelines/steps_linux.yml - job: macOS pool: vmImage: 'macOS-latest' variables: MUMBLE_ENVIRONMENT_VERSION: 'macos-static-1.4.x-2020-05-27-ecb3c64-1151' steps: - - script: git submodule --quiet update --init --recursive - displayName: 'Fetch submodules' - - task: Cache@2 - inputs: - key: '"$(MUMBLE_ENVIRONMENT_VERSION)"' - path: '$(MUMBLE_ENVIRONMENT_PATH)' - displayName: 'Environment storage' - - script: .ci/azure-pipelines/install-environment_macos.bash - displayName: 'Install build environment' - - script: .ci/azure-pipelines/build_macos.bash - displayName: 'Build' - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: '$(Build.ArtifactStagingDirectory)' - artifactName: macOS installer + - template: .ci/azure-pipelines/steps_macos.yml - job: Translations pool: vmImage: 'ubuntu-latest' |