mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Merge pull request #1054 from pre-commit/rust_ap_linux
Fixes for rust tests on azure pipelines linux
This commit is contained in:
commit
e0c7db1021
2 changed files with 2 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ 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 RUSTUP_HOME
|
TOX_TESTENV_PASSENV: COVERAGE_IGNORE_WINDOWS
|
||||||
TEMP: C:\Temp # remove when dropping python2
|
TEMP: C:\Temp # remove when dropping python2
|
||||||
- template: job--python-tox.yml@asottile
|
- template: job--python-tox.yml@asottile
|
||||||
parameters:
|
parameters:
|
||||||
|
|
@ -30,7 +30,6 @@ jobs:
|
||||||
pre_test:
|
pre_test:
|
||||||
- task: UseRubyVersion@0
|
- task: UseRubyVersion@0
|
||||||
- template: step--git-install.yml
|
- template: step--git-install.yml
|
||||||
- template: step--rust-install.yml
|
|
||||||
- bash: |
|
- bash: |
|
||||||
testing/get-swift.sh
|
testing/get-swift.sh
|
||||||
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
||||||
|
|
@ -41,7 +40,6 @@ jobs:
|
||||||
os: linux
|
os: linux
|
||||||
pre_test:
|
pre_test:
|
||||||
- task: UseRubyVersion@0
|
- task: UseRubyVersion@0
|
||||||
- template: step--rust-install.yml
|
|
||||||
- bash: |
|
- bash: |
|
||||||
testing/get-swift.sh
|
testing/get-swift.sh
|
||||||
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
echo '##vso[task.prependpath]/tmp/swift/usr/bin'
|
||||||
|
|
|
||||||
2
tox.ini
2
tox.ini
|
|
@ -3,7 +3,7 @@ envlist = py27,py36,py37,pypy,pypy3,pre-commit
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = -rrequirements-dev.txt
|
deps = -rrequirements-dev.txt
|
||||||
passenv = HOME LOCALAPPDATA
|
passenv = HOME LOCALAPPDATA RUSTUP_HOME
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
coverage run -m pytest {posargs:tests}
|
coverage run -m pytest {posargs:tests}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue