diff options
author | MaT1g3R <peijun.ma@protonmail.com> | 2019-08-12 21:12:55 -0400 |
---|---|---|
committer | Matan Kushner <hello@matchai.me> | 2019-08-12 21:12:55 -0400 |
commit | 160a79fa062de954f3f66761032cf418589f191e (patch) | |
tree | f625ad835cea730c45fc78f8e7d46e39762dfe34 /ci | |
parent | 274042832d0982da1e7f672d2b3de88d8ace7f3e (diff) |
feat: Implement configuration to display pyenv version name (#140)
This behavior can be enabled via setting `use_pyenv` to true.
The "pyenv" prefix before the version name can be configured using `pyenv_prefix`.
Diffstat (limited to 'ci')
-rw-r--r-- | ci/setup-test-env.yml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ci/setup-test-env.yml b/ci/setup-test-env.yml index 80a031c1a..e36bca304 100644 --- a/ci/setup-test-env.yml +++ b/ci/setup-test-env.yml @@ -10,27 +10,16 @@ steps: versionSpec: "1.10" displayName: "Install a fixed version of Go" - # Because the Pipelines agent updates are out of sync, we can't install 3.6.9 - # with PythonTool on macOS - + # We are using pyenv to install Python for integration tests # Install Python - - task: UsePythonVersion@0 - inputs: - versionSpec: "3.6.9" - displayName: "Install a fixed version of Python" - condition: not(eq(variables['Agent.OS'], 'Darwin')) - # Install Python (macOS) - script: | echo "##vso[task.setvariable variable=PYTHON_VERSION;]3.6.9" echo "##vso[task.setvariable variable=PYENV_ROOT;]$HOME/.pyenv" - condition: eq(variables['Agent.OS'], 'Darwin') - script: | curl https://pyenv.run | bash echo "##vso[task.setvariable variable=PATH;]$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH" - condition: eq(variables['Agent.OS'], 'Darwin') - script: | eval "$(pyenv init -)" pyenv install $PYTHON_VERSION pyenv global $PYTHON_VERSION - condition: eq(variables['Agent.OS'], 'Darwin') displayName: "Install a fixed version of Python" |