parameters: - name: CLIRepoPath type: string default: '.' - name: CLIExtensionRepoPath type: string default: '' - name: EnableCompactAAZ type: boolean default: false steps: - bash: | set -ev python -m venv env chmod +x env/bin/activate . env/bin/activate python -m pip install -U pip pip install azdev azdev --version if [ -z "$CLI_EXT_REPO_PATH" ]; then azdev setup -c $CLI_REPO_PATH --debug else azdev setup -c $CLI_REPO_PATH -r $CLI_EXT_REPO_PATH --debug fi # This helps detect issues in CI if a used SDK API version is deleted by the below script. python $CLI_REPO_PATH/scripts/trim_sdk.py # This helps detect issues in CI if aaz compacted echo EnableCompactAAZ: ${{ parameters.EnableCompactAAZ }} if [ "${{ parameters.EnableCompactAAZ }}" == 'True' ]; then python $CLI_REPO_PATH/scripts/compact_aaz.py fi # Verify installation and build command index az --version displayName: 'azdev setup' env: CLI_REPO_PATH: ${{ parameters.CLIRepoPath }} CLI_EXT_REPO_PATH: ${{ parameters.CLIExtensionRepoPath }}