From 13bc45ec7240e8a541f6e827251178cc050e9006 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Mon, 6 Jul 2020 22:49:52 +0200 Subject: [PATCH] Add test job in Azure --- .../templates/jobs/packaging-jobs.yml | 49 +++++++++++++++---- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/.azure-pipelines/templates/jobs/packaging-jobs.yml b/.azure-pipelines/templates/jobs/packaging-jobs.yml index 1e993c71c..b768c75eb 100644 --- a/.azure-pipelines/templates/jobs/packaging-jobs.yml +++ b/.azure-pipelines/templates/jobs/packaging-jobs.yml @@ -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