forked from illuscio-dev/azure-pipelines-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.yml
41 lines (32 loc) · 1.08 KB
/
setup.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
parameters:
# What the primary language of this build is. Choices are GO | PYTHON | DOCKER.
- name: language
type: string
# Artifact feed to pull custom packages from (pass blank if not using).
- name: pypiAzureArtifactFeed
type: string
# Python version to use for python tasks.
- name: pythonVersion
type: string
# Link to go compiler to use.
- name: goVersion
type: string
# Whether to generate protobuff docs
- name: docProtoc
type: boolean
steps:
# Setup python environment.
- template: setup_python.yml
parameters:
pythonVersion: ${{ parameters.pythonVersion }}
pypiAzureArtifactFeed: ${{ parameters.pypiAzureArtifactFeed }}
# Setup Go. We use go tools for some of our linting regardless of language, so we
# need to set it up.
- template: setup_go.yml
parameters:
language: ${{ parameters.language }}
goVersion: ${{ parameters.goVersion }}
- ${{ if eq( parameters.language, 'RUST' ) }}:
- template: setup_rust.yml
- ${{ if eq( parameters.language, 'ELIXIR' ) }}:
- template: setup_elixir.yml