Merge pull request #1052 from pre-commit/rust_ap

azure pipelines now has rust by default on windows
This commit is contained in:
Anthony Sottile 2019-05-31 13:35:49 -07:00 committed by GitHub
commit fff3ad518c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -20,10 +20,8 @@ jobs:
os: windows os: windows
additional_variables: additional_variables:
COVERAGE_IGNORE_WINDOWS: '# pragma: windows no cover' COVERAGE_IGNORE_WINDOWS: '# pragma: windows no cover'
TOX_TESTENV_PASSENV: COVERAGE_IGNORE_WINDOWS TOX_TESTENV_PASSENV: COVERAGE_IGNORE_WINDOWS RUSTUP_HOME
TEMP: C:\Temp # remove when dropping python2 TEMP: C:\Temp # remove when dropping python2
pre_test:
- template: step--rust-install.yml
- template: job--python-tox.yml@asottile - template: job--python-tox.yml@asottile
parameters: parameters:
toxenvs: [py37] toxenvs: [py37]

View file

@ -4,6 +4,7 @@ from __future__ import unicode_literals
import os.path import os.path
import re import re
import shutil import shutil
import sys
import cfgv import cfgv
import mock import mock
@ -717,6 +718,10 @@ def local_python_config():
return {'repo': 'local', 'hooks': hooks} return {'repo': 'local', 'hooks': hooks}
@pytest.mark.xfail( # pragma: windows no cover
sys.platform == 'win32',
reason='microsoft/azure-pipelines-image-generation#989',
)
def test_local_python_repo(store, local_python_config): def test_local_python_repo(store, local_python_config):
hook = _get_hook(local_python_config, store, 'foo') hook = _get_hook(local_python_config, store, 'foo')
# language_version should have been adjusted to the interpreter version # language_version should have been adjusted to the interpreter version