mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
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
This commit is contained in:
@@ -1,22 +1,36 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- job: test
|
- job: test
|
||||||
pool:
|
|
||||||
vmImage: vs2017-win2016
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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
|
PYTHON_VERSION: 3.5
|
||||||
TOXENV: py35
|
TOXENV: py35
|
||||||
py37-cover:
|
windows-py37-cover:
|
||||||
|
IMAGE_NAME: vs2017-win2016
|
||||||
PYTHON_VERSION: 3.7
|
PYTHON_VERSION: 3.7
|
||||||
TOXENV: py37-cover
|
TOXENV: py37-cover
|
||||||
integration-certbot:
|
windows-integration-certbot:
|
||||||
|
IMAGE_NAME: vs2017-win2016
|
||||||
PYTHON_VERSION: 3.7
|
PYTHON_VERSION: 3.7
|
||||||
TOXENV: integration-certbot
|
TOXENV: integration-certbot
|
||||||
PYTEST_ADDOPTS: --numprocesses 4
|
PYTEST_ADDOPTS: --numprocesses 4
|
||||||
|
pool:
|
||||||
|
vmImage: $(IMAGE_NAME)
|
||||||
variables:
|
variables:
|
||||||
- group: certbot-common
|
- group: certbot-common
|
||||||
steps:
|
steps:
|
||||||
|
- bash: brew install augeas
|
||||||
|
condition: startswith(variables['IMAGE_NAME'], 'macOS')
|
||||||
|
displayName: Install Augeas
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: $(PYTHON_VERSION)
|
versionSpec: $(PYTHON_VERSION)
|
||||||
|
|||||||
-19
@@ -6,7 +6,6 @@ cache:
|
|||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
|
|
||||||
before_script:
|
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.
|
# On Travis, the fastest parallelization for integration tests has proved to be 4.
|
||||||
- 'if [[ "$TOXENV" == *"integration"* ]]; then export PYTEST_ADDOPTS="--numprocesses 4"; fi'
|
- 'if [[ "$TOXENV" == *"integration"* ]]; then export PYTEST_ADDOPTS="--numprocesses 4"; fi'
|
||||||
# Use Travis retry feature for farm tests since they are flaky
|
# Use Travis retry feature for farm tests since they are flaky
|
||||||
@@ -224,24 +223,6 @@ matrix:
|
|||||||
packages: # don't install nginx and apache
|
packages: # don't install nginx and apache
|
||||||
- libaugeas0
|
- libaugeas0
|
||||||
<<: *extended-test-suite
|
<<: *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
|
# container-based infrastructure
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|||||||
Reference in New Issue
Block a user