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@users.noreply.github.com>2020-02-21 22:18:53 +0300
committerGitHub <noreply@github.com>2020-02-21 22:18:53 +0300
commit7d79c91e9b52ef75d7ac86232dbbedc84f066587 (patch)
tree66f4cbc2724bb565729b63bf4095e08e838b5eb1
parentc883efde0f649a0a7f5da1c35cbb1ae54d752109 (diff)
Move our macOS tests to Azure Pipelines (#7793)
[Our macOS tests are failing](https://travis-ci.com/certbot/certbot/builds/149965318) again this time due to the problem described at https://travis-ci.community/t/macos-build-fails-because-of-homebrew-bundle-unknown-command/7296/14. I tried adding `update: true` to the Homebrew config as described in that thread, but [it didn't work](https://travis-ci.com/certbot/certbot/builds/150070374). I also tried updating the macOS image we use which [didn't work](https://travis-ci.com/certbot/certbot/builds/150072389). Since we continue to have problems with macOS on Travis, let try moving the tests to Azure Pipelines. * test macos * Remove Travis macOS setup * add displayName
-rw-r--r--.azure-pipelines/templates/tests-suite.yml24
-rw-r--r--.travis.yml19
2 files changed, 19 insertions, 24 deletions
diff --git a/.azure-pipelines/templates/tests-suite.yml b/.azure-pipelines/templates/tests-suite.yml
index 119f755a6..069ea94d6 100644
--- a/.azure-pipelines/templates/tests-suite.yml
+++ b/.azure-pipelines/templates/tests-suite.yml
@@ -1,22 +1,36 @@
jobs:
- job: test
- pool:
- vmImage: vs2017-win2016
strategy:
matrix:
- py35:
+ macos-py27:
+ IMAGE_NAME: macOS-10.14
+ PYTHON_VERSION: 2.7
+ TOXENV: py27
+ macos-py38:
+ IMAGE_NAME: macOS-10.14
+ PYTHON_VERSION: 3.8
+ TOXENV: py38
+ windows-py35:
+ IMAGE_NAME: vs2017-win2016
PYTHON_VERSION: 3.5
TOXENV: py35
- py37-cover:
+ windows-py37-cover:
+ IMAGE_NAME: vs2017-win2016
PYTHON_VERSION: 3.7
TOXENV: py37-cover
- integration-certbot:
+ windows-integration-certbot:
+ IMAGE_NAME: vs2017-win2016
PYTHON_VERSION: 3.7
TOXENV: integration-certbot
PYTEST_ADDOPTS: --numprocesses 4
+ pool:
+ vmImage: $(IMAGE_NAME)
variables:
- group: certbot-common
steps:
+ - bash: brew install augeas
+ condition: startswith(variables['IMAGE_NAME'], 'macOS')
+ displayName: Install Augeas
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
diff --git a/.travis.yml b/.travis.yml
index 1eae66333..e5354898d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,7 +6,6 @@ cache:
- $HOME/.cache/pip
before_script:
- - 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ulimit -n 1024 ; fi'
# On Travis, the fastest parallelization for integration tests has proved to be 4.
- 'if [[ "$TOXENV" == *"integration"* ]]; then export PYTEST_ADDOPTS="--numprocesses 4"; fi'
# Use Travis retry feature for farm tests since they are flaky
@@ -224,24 +223,6 @@ matrix:
packages: # don't install nginx and apache
- libaugeas0
<<: *extended-test-suite
- - language: generic
- env: TOXENV=py27
- os: osx
- addons:
- homebrew:
- packages:
- - augeas
- - python2
- <<: *extended-test-suite
- - language: generic
- env: TOXENV=py3
- os: osx
- addons:
- homebrew:
- packages:
- - augeas
- - python3
- <<: *extended-test-suite
# container-based infrastructure
sudo: false