From 4c6879602ace5bf34808fb6c07381eff152bf39b Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Tue, 28 May 2019 00:48:48 -0400 Subject: [PATCH] update pipeline definition Signed-off-by: Dan Ryan Update azure scripts Signed-off-by: Dan Ryan --- .azure-pipelines/steps/create-virtualenv.yml | 8 ++++++-- .azure-pipelines/steps/run-tests.yml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/steps/create-virtualenv.yml b/.azure-pipelines/steps/create-virtualenv.yml index 04f6adc0..873efdc0 100644 --- a/.azure-pipelines/steps/create-virtualenv.yml +++ b/.azure-pipelines/steps/create-virtualenv.yml @@ -1,3 +1,6 @@ +parameters: + python_version: '' + steps: - script: | @@ -29,10 +32,11 @@ steps: - script: | echo "Python path: $(PY_EXE)" echo "GIT_SSL_CAINFO: $(GIT_SSL_CAINFO)" - echo "PIPENV PYTHON VERSION: $PIPENV_DEFAULT_PYTHON_VERSION" + echo "PIPENV PYTHON VERSION: $(python.version)" + echo "python_version: ${{ parameters.python_version }}" $(PY_EXE) -m pipenv install --deploy --dev --python="$(PY_EXE)" env: - PIPENV_DEFAULT_PYTHON_VERSION: $(python.version) + PIPENV_DEFAULT_PYTHON_VERSION: ${{ parameters.python_version }} PYTHONWARNINGS: 'ignore:DEPRECATION' PIPENV_NOSPIN: '1' displayName: Make Virtualenv diff --git a/.azure-pipelines/steps/run-tests.yml b/.azure-pipelines/steps/run-tests.yml index 63972c48..011cecf2 100644 --- a/.azure-pipelines/steps/run-tests.yml +++ b/.azure-pipelines/steps/run-tests.yml @@ -9,7 +9,7 @@ steps: - template: install-dependencies.yml - script: | - echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]$(python.version)' + echo '##vso[task.setvariable variable=PIPENV_DEFAULT_PYTHON_VERSION]'$(python.version) env: PYTHON_VERSION: $(python.version)