mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 08:03:10 +02:00
Fixes #8071 and fixes https://github.com/certbot/certbot/issues/8110. This PR migrates every job from Travis in Azure Pipeline. This PR essentially converts the Travis jobs into Azure Pipeline with a complete iso-fonctionality (or I made a mistake). The jobs are added in the relevant existing pipelines (`main`, `nightly`, `advanced-test`, `release`). A global refactoring thanks to the templating system is done to reduce greatly the verbosity of the pipeline descriptions. A specific feature (not present in Travis) is added: the stage `On_Failure`. Using directly the Mattermost API, it allows to notify pipeline failure in a Mattermost channel with a link to the failed pipelines without the need to authenticate to Microsoft. See https://github.com/certbot/certbot/pull/8098#issuecomment-649873641 for the post merge actions to do at the end of this work.
14 lines
492 B
YAML
14 lines
492 B
YAML
# Advanced pipeline for running our full test suite on demand and for release branches.
|
|
trigger:
|
|
- '*.x'
|
|
# When changing these triggers, please ensure the documentation under
|
|
# "Running tests in CI" is still correct.
|
|
- test-*
|
|
pr: none
|
|
|
|
stages:
|
|
- template: templates/stages/test-and-package-stage.yml
|
|
# Notify failures only for release branches.
|
|
- ${{ if not(startsWith(variables['Build.SourceBranchName'], 'test-')) }}:
|
|
- template: templates/stages/notify-failure-stage.yml
|