mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Certbot relies heavily on bash scripts to deploy a development environment and to execute tests. This is fine for Linux systems, including Travis, but problematic for Windows machines. This PR converts all theses scripts into Python, to make them platform independant. As a consequence, tox-win.ini is not needed anymore, and tox can be run indifferently on Windows or on Linux using a common tox.ini. AppVeyor is updated accordingly to execute tests for acme, certbot and all dns plugins. Other tests are not executed as they are for Docker, unsupported Apache/Nginx/Postfix plugins (for now) or not relevant for Windows (explicit Linux distribution tests or pylint). Another PR will be done on certbot website to update how a dev environment can be set up. * Replace several shell scripts by python equivalent. * Correction on tox coverage * Extend usage of new python scripts * Various corrections * Replace venv construction bash scripts by python equivalents * Update tox.ini * Unicode lines to compare files * Put modifications on letsencrypt-auto-source instead of generated scripts * Add executable permissions for Linux. * Merge tox win tests into main tox * Skip lock_test on Windows * Correct appveyor config * Update appveyor.yml * Explicit coverage py27 or py37 * Avoid to cover non supported certbot plugins on Windows * Update tox.ini * Remove specific warnings during CI * No cover on a debug code for tests only. * Update documentation and help script on venv/venv3.py * Customize help message for Windows * Quote correctly executable path with potential spaces in it. * Copy pipstrap from upstream
40 lines
1 KiB
YAML
40 lines
1 KiB
YAML
environment:
|
|
matrix:
|
|
- FYI: Python 3.4 on Windows Server 2012 R2
|
|
TOXENV: py34
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
|
- FYI: Python 3.4 on Windows Server 2016
|
|
TOXENV: py34
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
- FYI: Python 3.5 on Windows Server 2016
|
|
TOXENV: py35
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
- FYI: Python 3.7 on Windows Server 2016 + code coverage
|
|
TOXENV: py37-cover
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^\d+\.\d+\.x$/ # Version branches like X.X.X
|
|
- /^test-.*$/
|
|
|
|
install:
|
|
# Use Python 3.7 by default
|
|
- "SET PATH=C:\\Python37;C:\\Python37\\Scripts;%PATH%"
|
|
# Check env
|
|
- "echo %APPVEYOR_BUILD_WORKER_IMAGE%"
|
|
- "python --version"
|
|
# Upgrade pip to avoid warnings
|
|
- "python -m pip install --upgrade pip"
|
|
# Ready to install tox and coverage
|
|
- "pip install tox codecov"
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
# Test env is set by TOXENV env variable
|
|
- tox
|
|
|
|
on_success:
|
|
- if exist .coverage codecov
|