mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 18:14:21 +02:00
We're planning on using the branch apache-parser-v2 allowing us to incrementally work on the new Apache parser and feel comfortable landing temporary test code that we don't really want in master. The apache-parser-v2 branch is created and locked down, but neither Travis or AppVeyor are configured to run tests on it. See #7230. This PR fixes that problem. This could probably just land in the apache-parser-v2 branch, but why unnecessarily deviate the branch from master? It doesn't hurt anything there. Once it lands, I'll get this added to the apache-parser-v2 branch too. * Run tests on apache-parser-v2. * add comment * Don't run full test suite on apache-parser-v2.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
image: Visual Studio 2015
|
|
|
|
environment:
|
|
matrix:
|
|
- TOXENV: py35
|
|
- TOXENV: py37-cover
|
|
|
|
branches:
|
|
only:
|
|
# apache-parser-v2 is a temporary branch for doing work related to
|
|
# rewriting the parser in the Apache plugin.
|
|
- apache-parser-v2
|
|
- master
|
|
- /^\d+\.\d+\.x$/ # Version branches like X.X.X
|
|
- /^test-.*$/
|
|
|
|
init:
|
|
# Since master can receive only commits from PR that have already been tested, following
|
|
# condition avoid to launch all jobs except the coverage one for commits pushed to master.
|
|
- ps: |
|
|
if (-Not $Env:APPVEYOR_PULL_REQUEST_NUMBER -And $Env:APPVEYOR_REPO_BRANCH -Eq 'master' `
|
|
-And -Not ($Env:TOXENV -Like '*-cover'))
|
|
{ $Env:APPVEYOR_SKIP_FINALIZE_ON_EXIT = 'true'; Exit-AppVeyorBuild }
|
|
|
|
install:
|
|
# Use Python 3.7 by default
|
|
- "SET PATH=C:\\Python37;C:\\Python37\\Scripts;%PATH%"
|
|
# Check env
|
|
- "python --version"
|
|
# Upgrade pip to avoid warnings
|
|
- "python -m pip install --upgrade pip"
|
|
# Ready to install tox and coverage
|
|
# tools/pip_install.py is used to pin packages to a known working version.
|
|
- "python tools\\pip_install.py tox codecov"
|
|
|
|
build: off
|
|
|
|
test_script:
|
|
- set TOX_TESTENV_PASSENV=APPVEYOR
|
|
# Test env is set by TOXENV env variable
|
|
- tox
|
|
|
|
on_success:
|
|
- if exist .coverage codecov -F windows
|