Fixes for rust tests on azure pipelines linux

This commit is contained in:
Anthony Sottile 2019-06-06 08:41:09 -07:00
parent 016eda9f3c
commit 90128c5a9d
2 changed files with 2 additions and 4 deletions

View file

@ -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'

View file

@ -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}