From bc6450773a9e80904fc5e144b16abee47a6f197f Mon Sep 17 00:00:00 2001 From: Matt Cooper Date: Thu, 25 Apr 2019 08:13:31 -0400 Subject: [PATCH 1/2] remove PyPy special casing --- azure-pipelines.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2d225bafc..448ffba5e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,7 +5,6 @@ trigger: variables: PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv" python.needs_vc: False - python.exe: "python" COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage" COVERAGE_PROCESS_START: "$(Build.Repository.LocalPath)/.coveragerc" PYTEST_COVERAGE: '0' @@ -43,14 +42,12 @@ jobs: # But no exception with py27-pexpect,py27-twisted,py27-numpy. PYTEST_COVERAGE: '1' pypy: - python.version: 'pypy' + python.version: 'pypy2' tox.env: 'pypy' - python.exe: 'pypy' # NOTE: pypy3 fails to install pip currently due to an interal error. # pypy3: # python.version: 'pypy3' # tox.env: 'pypy3' - # python.exe: 'pypy3' py34-xdist: python.version: '3.4' tox.env: 'py34-xdist' @@ -86,7 +83,6 @@ jobs: steps: - task: UsePythonVersion@0 - condition: not(startsWith(variables['python.exe'], 'pypy')) inputs: versionSpec: '$(python.version)' architecture: 'x64' @@ -95,29 +91,12 @@ jobs: condition: eq(variables['python.needs_vc'], True) displayName: 'Install VC for py27' - - script: choco install python.pypy - condition: eq(variables['python.exe'], 'pypy') - displayName: 'Install pypy' - - - script: choco install pypy3 - condition: eq(variables['python.exe'], 'pypy3') - displayName: 'Install pypy3' - - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: | - Invoke-WebRequest -Uri "https://bootstrap.pypa.io/get-pip.py" -OutFile "get-pip.py" - $(python.exe) get-pip.py - condition: startsWith(variables['python.exe'], 'pypy') - displayName: 'Install pip' - - - script: $(python.exe) -m pip install --upgrade pip && $(python.exe) -m pip install tox + - script: python -m pip install --upgrade pip && python -m pip install tox displayName: 'Install tox' - script: | call scripts/setup-coverage-vars.bat || goto :eof - $(python.exe) -m tox -e $(tox.env) + python -m tox -e $(tox.env) displayName: 'Run tests' - task: PublishTestResults@2 @@ -130,6 +109,6 @@ jobs: displayName: 'Report and upload coverage' condition: eq(variables['PYTEST_COVERAGE'], '1') env: - PYTHON: $(python.exe) + PYTHON: python CODECOV_TOKEN: $(CODECOV_TOKEN) PYTEST_CODECOV_NAME: $(tox.env) From 2bd97ebaf7d8efc0ee2a14b8f483d1abef4b13a4 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 4 May 2019 10:24:46 -0300 Subject: [PATCH 2/2] Use 'pypy' as executable on PyPy env [skip travis] --- azure-pipelines.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 448ffba5e..42be786b5 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,6 +5,7 @@ trigger: variables: PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv" python.needs_vc: False + python.exe: "python" COVERAGE_FILE: "$(Build.Repository.LocalPath)/.coverage" COVERAGE_PROCESS_START: "$(Build.Repository.LocalPath)/.coveragerc" PYTEST_COVERAGE: '0' @@ -44,10 +45,12 @@ jobs: pypy: python.version: 'pypy2' tox.env: 'pypy' - # NOTE: pypy3 fails to install pip currently due to an interal error. + python.exe: 'pypy' + # NOTE: pypy3 fails to install pip currently due to an internal error. # pypy3: # python.version: 'pypy3' # tox.env: 'pypy3' + # python.exe: 'pypy3' py34-xdist: python.version: '3.4' tox.env: 'py34-xdist' @@ -91,12 +94,12 @@ jobs: condition: eq(variables['python.needs_vc'], True) displayName: 'Install VC for py27' - - script: python -m pip install --upgrade pip && python -m pip install tox + - script: $(python.exe) -m pip install --upgrade pip && $(python.exe) -m pip install tox displayName: 'Install tox' - script: | call scripts/setup-coverage-vars.bat || goto :eof - python -m tox -e $(tox.env) + $(python.exe) -m tox -e $(tox.env) displayName: 'Run tests' - task: PublishTestResults@2 @@ -109,6 +112,6 @@ jobs: displayName: 'Report and upload coverage' condition: eq(variables['PYTEST_COVERAGE'], '1') env: - PYTHON: python + PYTHON: $(python.exe) CODECOV_TOKEN: $(CODECOV_TOKEN) PYTEST_CODECOV_NAME: $(tox.env)