summaryrefslogtreecommitdiffstats
path: root/ci/setup-test-env.yml
blob: e36bca304810a1283ea09d720a6596b7770c92d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
steps:
  # Install Node.js
  - task: NodeTool@0
    inputs:
      versionSpec: "12.0.0"
    displayName: "Install a fixed version of Node"
  # Install Go
  - task: GoTool@0
    inputs:
      versionSpec: "1.10"
    displayName: "Install a fixed version of Go"

  # We are using pyenv to install Python for integration tests
  # Install Python
  - script: |
      echo "##vso[task.setvariable variable=PYTHON_VERSION;]3.6.9"
      echo "##vso[task.setvariable variable=PYENV_ROOT;]$HOME/.pyenv"
  - script: |
      curl https://pyenv.run | bash
      echo "##vso[task.setvariable variable=PATH;]$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
  - script: |
      eval "$(pyenv init -)"
      pyenv install $PYTHON_VERSION
      pyenv global $PYTHON_VERSION
    displayName: "Install a fixed version of Python"