Add test job in Azure

This commit is contained in:
Adrien Ferrand 2020-07-06 22:49:52 +02:00
parent e2daada6b7
commit 13bc45ec72

View file

@ -64,11 +64,11 @@ jobs:
amd64:
ARCH: amd64
# Do not run the QEMU jobs for the full-test-suite pipeline
${{ if ne(variables['System.DefinitionId'], 4 )}}:
arm64:
ARCH: arm64
armhf:
ARCH: armhf
# ${{ if ne(variables['System.DefinitionId'], 4 )}}:
# arm64:
# ARCH: arm64
# armhf:
# ARCH: armhf
pool:
vmImage: ubuntu-18.04
steps:
@ -87,11 +87,11 @@ jobs:
amd64:
ARCH: amd64
# Do not run the QEMU jobs for the full-test-suite pipeline
${{ if ne(variables['System.DefinitionId'], 4 )}}:
arm64:
ARCH: arm64
armhf:
ARCH: armhf
# ${{ if ne(variables['System.DefinitionId'], 4 )}}:
# arm64:
# ARCH: arm64
# armhf:
# ARCH: armhf
pool:
vmImage: ubuntu-18.04
steps:
@ -125,3 +125,32 @@ jobs:
- script: |
python -m tox -e integration-external,apacheconftest-external-with-pebble
displayName: Run tox
- job: snap_dns_run
dependsOn: snap_dns_build
pool:
vmImage: ubuntu-18.04
steps:
- script: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends snapd
displayName: Install dependencies
- task: UsePythonVersion@0
inputs:
versionSpec: 3.8
addToPath: true
- task: DownloadPipelineArtifact@2
inputs:
artifact: snap-amd64
path: $(Build.SourcesDirectory)/snap
displayName: Retrieve Certbot snap
- task: DownloadPipelineArtifact@2
inputs:
artifact: dns-snap-amd64
path: $(Build.SourcesDirectory)/snap
displayName: Retrieve Certbot DNS plugins snaps
- script: |
sudo python3 -m pip install pytest
sudo pytest tests/certbot_dns_snap_test.py
displayName: Test DNS plugins snaps
env:
SNAP_FOLDER: $(Build.SourcesDirectory)/snap