Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Warren <bmw@eff.org>2020-10-01 00:40:22 +0300
committerBrad Warren <bmw@eff.org>2020-10-01 00:40:22 +0300
commit4b532fe787e0a4a1b4026debdc049f8f1981ccf0 (patch)
tree09adf6338522d097c217ae729cba9ddb8cb6d5ae
parentfca7ec896a9b2813ec7cbfefe9251d70d106f61d (diff)
-rw-r--r--.azure-pipelines/templates/jobs/packaging-jobs.yml158
-rw-r--r--.azure-pipelines/templates/stages/test-and-package-stage.yml2
-rw-r--r--certbot-dns-dnsimple/snap/snapcraft.yaml1
-rwxr-xr-xtools/snap/build_remote.py2
4 files changed, 2 insertions, 161 deletions
diff --git a/.azure-pipelines/templates/jobs/packaging-jobs.yml b/.azure-pipelines/templates/jobs/packaging-jobs.yml
index 8da30b1f5..561cc84db 100644
--- a/.azure-pipelines/templates/jobs/packaging-jobs.yml
+++ b/.azure-pipelines/templates/jobs/packaging-jobs.yml
@@ -1,103 +1,4 @@
jobs:
- - job: docker_build
- pool:
- vmImage: ubuntu-18.04
- strategy:
- matrix:
- amd64:
- DOCKER_ARCH: amd64
- # Do not run the heavy non-amd64 builds for test branches
- ${{ if not(startsWith(variables['Build.SourceBranchName'], 'test-')) }}:
- arm32v6:
- DOCKER_ARCH: arm32v6
- arm64v8:
- DOCKER_ARCH: arm64v8
- steps:
- - bash: set -e && tools/docker/build.sh $(dockerTag) $DOCKER_ARCH
- displayName: Build the Docker images
- # We don't filter for the Docker Hub organization to continue to allow
- # easy testing of these scripts on forks.
- - bash: |
- set -e
- DOCKER_IMAGES=$(docker images --filter reference='*/certbot' --filter reference='*/dns-*' --format '{{.Repository}}')
- docker save --output images.tar $DOCKER_IMAGES
- displayName: Save the Docker images
- # If the name of the tar file or artifact changes, the deploy stage will
- # also need to be updated.
- - bash: set -e && mv images.tar $(Build.ArtifactStagingDirectory)
- displayName: Prepare Docker artifact
- - task: PublishPipelineArtifact@1
- inputs:
- path: $(Build.ArtifactStagingDirectory)
- artifact: docker_$(DOCKER_ARCH)
- displayName: Store Docker artifact
- - job: installer_build
- pool:
- vmImage: vs2017-win2016
- steps:
- - task: UsePythonVersion@0
- inputs:
- versionSpec: 3.7
- architecture: x86
- addToPath: true
- - script: python windows-installer/construct.py
- displayName: Build Certbot installer
- - task: CopyFiles@2
- inputs:
- sourceFolder: $(System.DefaultWorkingDirectory)/windows-installer/build/nsis
- contents: '*.exe'
- targetFolder: $(Build.ArtifactStagingDirectory)
- - task: PublishPipelineArtifact@1
- inputs:
- path: $(Build.ArtifactStagingDirectory)
- # If we change the artifact's name, it should also be changed in tools/create_github_release.py
- artifact: windows-installer
- displayName: Publish Windows installer
- - job: installer_run
- dependsOn: installer_build
- strategy:
- matrix:
- win2019:
- imageName: windows-2019
- win2016:
- imageName: vs2017-win2016
- pool:
- vmImage: $(imageName)
- steps:
- - powershell: |
- if ($PSVersionTable.PSVersion.Major -ne 5) {
- throw "Powershell version is not 5.x"
- }
- condition: eq(variables['imageName'], 'vs2017-win2016')
- displayName: Check Powershell 5.x is used in vs2017-win2016
- - task: UsePythonVersion@0
- inputs:
- versionSpec: 3.8
- addToPath: true
- - task: DownloadPipelineArtifact@2
- inputs:
- artifact: windows-installer
- path: $(Build.SourcesDirectory)/bin
- displayName: Retrieve Windows installer
- # pip 9.0 provided by pipstrap is not able to resolve properly the pywin32 dependency
- # required by certbot-ci: as a temporary workaround until pipstrap is updated, we install
- # a recent version of pip, but we also to disable the isolated feature as described in
- # https://github.com/certbot/certbot/issues/8256
- - script: |
- py -3 -m venv venv
- venv\Scripts\python -m pip install pip==20.2.3 setuptools==50.3.0 wheel==0.35.1
- venv\Scripts\python tools\pip_install.py -e certbot-ci
- env:
- PIP_NO_BUILD_ISOLATION: no
- displayName: Prepare Certbot-CI
- - script: |
- set PATH=%ProgramFiles(x86)%\Certbot\bin;%PATH%
- venv\Scripts\python -m pytest certbot-ci\windows_installer_integration_tests --allow-persistent-changes --installer-path $(Build.SourcesDirectory)\bin\certbot-beta-installer-win32.exe
- displayName: Run windows installer integration tests
- - script: |
- set PATH=%ProgramFiles(x86)%\Certbot\bin;%PATH%
- venv\Scripts\python -m pytest certbot-ci\certbot_integration_tests\certbot_tests -n 4
- displayName: Run certbot integration tests
- job: snaps_build
pool:
vmImage: ubuntu-18.04
@@ -141,62 +42,3 @@ jobs:
path: $(Build.ArtifactStagingDirectory)
artifact: snaps
displayName: Store snaps artifacts
- - job: snap_run
- dependsOn: snaps_build
- pool:
- vmImage: ubuntu-18.04
- steps:
- - task: UsePythonVersion@0
- inputs:
- versionSpec: 3.8
- addToPath: true
- - script: |
- set -e
- sudo apt-get update
- sudo apt-get install -y --no-install-recommends nginx-light snapd
- python3 -m venv venv
- venv/bin/python letsencrypt-auto-source/pieces/pipstrap.py
- venv/bin/python tools/pip_install.py -U tox
- displayName: Install dependencies
- - task: DownloadPipelineArtifact@2
- inputs:
- artifact: snaps
- path: $(Build.SourcesDirectory)/snap
- displayName: Retrieve Certbot snaps
- - script: |
- set -e
- sudo snap install --dangerous --classic snap/certbot_*_amd64.snap
- displayName: Install Certbot snap
- - script: |
- set -e
- venv/bin/python -m tox -e integration-external,apacheconftest-external-with-pebble
- displayName: Run tox
- - job: snap_dns_run
- dependsOn: snaps_build
- pool:
- vmImage: ubuntu-18.04
- steps:
- - script: |
- set -e
- 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: snaps
- path: $(Build.SourcesDirectory)/snap
- displayName: Retrieve Certbot snaps
- - script: |
- set -e
- python3 -m venv venv
- venv/bin/python letsencrypt-auto-source/pieces/pipstrap.py
- venv/bin/python tools/pip_install.py -e certbot-ci
- displayName: Prepare Certbot-CI
- - script: |
- set -e
- sudo -E venv/bin/pytest certbot-ci/snap_integration_tests/dns_tests --allow-persistent-changes --snap-folder $(Build.SourcesDirectory)/snap --snap-arch amd64
- displayName: Test DNS plugins snaps
diff --git a/.azure-pipelines/templates/stages/test-and-package-stage.yml b/.azure-pipelines/templates/stages/test-and-package-stage.yml
index 26010644d..60021cc33 100644
--- a/.azure-pipelines/templates/stages/test-and-package-stage.yml
+++ b/.azure-pipelines/templates/stages/test-and-package-stage.yml
@@ -1,6 +1,4 @@
stages:
- stage: TestAndPackage
jobs:
- - template: ../jobs/standard-tests-jobs.yml
- - template: ../jobs/extended-tests-jobs.yml
- template: ../jobs/packaging-jobs.yml
diff --git a/certbot-dns-dnsimple/snap/snapcraft.yaml b/certbot-dns-dnsimple/snap/snapcraft.yaml
index df0c4f608..e4597f23c 100644
--- a/certbot-dns-dnsimple/snap/snapcraft.yaml
+++ b/certbot-dns-dnsimple/snap/snapcraft.yaml
@@ -13,6 +13,7 @@ parts:
source: .
constraints: [$SNAPCRAFT_PART_SRC/snap-constraints.txt]
override-pull: |
+ gewijqhgeqoijgheqw
snapcraftctl pull
snapcraftctl set-version `grep ^version $SNAPCRAFT_PART_SRC/setup.py | cut -f2 -d= | tr -d "'[:space:]"`
build-environment:
diff --git a/tools/snap/build_remote.py b/tools/snap/build_remote.py
index 642b444b9..9d6243cd3 100755
--- a/tools/snap/build_remote.py
+++ b/tools/snap/build_remote.py
@@ -44,7 +44,7 @@ def _build_snap(target, archs, status, lock):
'"{1}" > "{2}/snap-constraints.txt"').format(sys.executable, f.name, workspace),
shell=True, cwd=CERTBOT_DIR)
- retry = 3
+ retry = 1
while retry:
exit_code, process_output = _execute_build(target, archs, status, workspace)