Files
aqtinstall/azure-pipelines.yml
David Dalcino b72891f139 cache powershell modules
This change saves PowerShell modules used in the Azure Pipelines to a
cache, and loads them when required. This is intended to prevent random
failures when the PowerShell Gallery fails to provide the requested
modules. These failures occur at random, possibly as a result of a
backpressure mechanism.

This change will also speed up all Windows Azure Pipelines jobs, since
downloads from the PowerShell Gallery will no longer be necessary.
2021-12-10 09:45:45 -08:00

64 lines
1.4 KiB
YAML

trigger:
branches:
include:
- releases/*
- refs/tags/v*
pr:
branches:
include:
- master
- releases/*
paths:
include:
- aqt/*
- ci/*
- azure-pipelines.yml
jobs:
- job: MatricesGenerator
displayName: Matrices Generator
pool:
vmImage: 'ubuntu-20.04'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
addToPath: true
- bash: python ci/generate_azure_pipelines_matrices.py
name: mtrx
displayName: Generate test matrices and set variables in Azure Pipelines
- job: Mac
dependsOn: MatricesGenerator
pool:
vmImage: 'macOS-10.15'
strategy:
matrix: $[ dependencies.MatricesGenerator.outputs['mtrx.mac'] ]
steps:
- script: brew install p7zip
displayName: Install 7zip
- template: ci/steps.yml
- job: Windows
dependsOn: MatricesGenerator
pool:
vmImage: 'windows-2019'
strategy:
matrix: $[ dependencies.MatricesGenerator.outputs['mtrx.windows'] ]
variables:
MODULES_FOLDER: '$(System.DefaultWorkingDirectory)\CachedPowershellModules'
startYear: $[format('{0:yyyy}', pipeline.startTime)]
startMonth: $[format('{0:MM}', pipeline.startTime)]
steps:
- template: ci/steps.yml
- job: Linux
dependsOn: MatricesGenerator
pool:
vmImage: 'ubuntu-20.04'
strategy:
matrix: $[ dependencies.MatricesGenerator.outputs['mtrx.linux'] ]
steps:
- template: ci/steps.yml