2020-05-13 11:06:13 +03:00
|
|
|
parameters:
|
|
|
|
- name: CLIRepoPath
|
|
|
|
type: string
|
|
|
|
default: '.'
|
|
|
|
- name: CLIExtensionRepoPath
|
|
|
|
type: string
|
|
|
|
default: ''
|
|
|
|
steps:
|
|
|
|
- bash: |
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
python -m venv env
|
|
|
|
chmod +x env/bin/activate
|
|
|
|
. env/bin/activate
|
2021-03-25 10:56:51 +03:00
|
|
|
python -m pip install -U pip
|
2021-05-31 11:20:29 +03:00
|
|
|
pip install azdev
|
2020-05-13 11:06:13 +03:00
|
|
|
azdev --version
|
|
|
|
|
|
|
|
if [ -z "$CLI_EXT_REPO_PATH" ]; then
|
2021-03-31 14:39:16 +03:00
|
|
|
azdev setup -c $CLI_REPO_PATH --debug
|
2020-05-13 11:06:13 +03:00
|
|
|
else
|
2021-03-31 14:39:16 +03:00
|
|
|
azdev setup -c $CLI_REPO_PATH -r $CLI_EXT_REPO_PATH --debug
|
2020-05-13 11:06:13 +03:00
|
|
|
fi
|
2021-04-29 05:00:33 +03:00
|
|
|
# This helps detect issues in CI if a used SDK API version is deleted by the below script.
|
|
|
|
python $CLI_REPO_PATH/build_scripts/windows/scripts/remove_unused_api_versions.py
|
2021-04-16 12:14:44 +03:00
|
|
|
displayName: 'azdev setup'
|
2020-05-13 11:06:13 +03:00
|
|
|
env:
|
|
|
|
CLI_REPO_PATH: ${{ parameters.CLIRepoPath }}
|
|
|
|
CLI_EXT_REPO_PATH: ${{ parameters.CLIExtensionRepoPath }}
|