From c10a2e3bda7f82de231b1fbc80bd877a75125402 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Mon, 27 May 2019 19:02:27 -0400 Subject: [PATCH] Update azure steps Signed-off-by: Dan Ryan --- .azure-pipelines/steps/run-tests-linux.yml | 7 +++++-- .azure-pipelines/steps/run-tests-windows.yml | 5 ++++- .azure-pipelines/steps/run-tests.yml | 4 ++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/steps/run-tests-linux.yml b/.azure-pipelines/steps/run-tests-linux.yml index 0298e4ad..7d63d812 100644 --- a/.azure-pipelines/steps/run-tests-linux.yml +++ b/.azure-pipelines/steps/run-tests-linux.yml @@ -1,3 +1,6 @@ +parameters: + python_version: '' + steps: - script: | # Fix Git SSL errors @@ -9,7 +12,7 @@ steps: PY_EXE: $(PY_EXE) GIT_SSL_CAINFO: $(GIT_SSL_CAINFO) LANG: $(LANG) - PIP_PROCESS_DEPENDENCY_LINKS: $(PIP_PROCESS_DEPENDENCY_LINKS) - PIPENV_DEFAULT_PYTHON_VERSION: $(PIPENV_DEFAULT_PYTHON_VERSION) + PIP_PROCESS_DEPENDENCY_LINKS: '$(PIP_PROCESS_DEPENDENCY_LINKS)' + PIPENV_DEFAULT_PYTHON_VERSION: '${{ parameters.python_version }}' PYTHONWARNINGS: ignore:DEPRECATION PIPENV_NOSPIN: '1' diff --git a/.azure-pipelines/steps/run-tests-windows.yml b/.azure-pipelines/steps/run-tests-windows.yml index 5d854a9b..21e7e49d 100644 --- a/.azure-pipelines/steps/run-tests-windows.yml +++ b/.azure-pipelines/steps/run-tests-windows.yml @@ -1,3 +1,6 @@ +parameters: + python_version: '' + steps: - powershell: | subst T: "$env:TEMP" @@ -11,6 +14,6 @@ steps: pipenv run pytest -ra --ignore=pipenv\patched --ignore=pipenv\vendor --junitxml=test-results.xml tests displayName: Run integration tests env: - PIPENV_DEFAULT_PYTHON_VERSION: $(PIPENV_DEFAULT_PYTHON_VERSION) + PIPENV_DEFAULT_PYTHON_VERSION: '${{ parameters.python_version }}' PYTHONWARNINGS: 'ignore:DEPRECATION' PIPENV_NOSPIN: '1' diff --git a/.azure-pipelines/steps/run-tests.yml b/.azure-pipelines/steps/run-tests.yml index f559b8ca..9740a4fd 100644 --- a/.azure-pipelines/steps/run-tests.yml +++ b/.azure-pipelines/steps/run-tests.yml @@ -17,8 +17,12 @@ steps: - ${{ if eq(parameters.vmImage, 'windows-2019') }}: - template: run-tests-windows.yml + parameters: + python.version: $(python.version) - ${{ if ne(parameters.vmImage, 'windows-2019') }}: - template: run-tests-linux.yml + parameters: + python.version: $(python.version) - task: PublishTestResults@2 displayName: Publish Test Results