-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathregression-steps.yml
More file actions
52 lines (43 loc) · 1.33 KB
/
regression-steps.yml
File metadata and controls
52 lines (43 loc) · 1.33 KB
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
42
43
44
45
46
47
48
49
50
51
52
parameters:
- name: TargetVersion
type: string
default: 'LOCAL' #specialcase value that will install the local version of oav
- name: Type
type: string
# assume presence of variable $(OutputFolder)
# $(RestSpecsRepo)
steps:
- bash: |
mkdir -p $(OutputFolder)
mkdir -p $(RestSpecsRepo)
displayName: Create Folders
- task: UseNode@1
inputs:
versionSpec: '16.x'
checkLatest: true
- task: UsePythonVersion@0
displayName: 'Use Python 3.11'
inputs:
versionSpec: "3.11"
- bash: |
if [[ "${{ parameters.TargetVersion }}" == "LOCAL" ]]; then
npm ci
npm run build
npm link
else
npm install -g oav@${{ parameters.TargetVersion }}
fi
displayName: Install OAV
workingDirectory: $(Build.SourcesDirectory)
- bash: |
git clone https://github.com/azure/azure-rest-api-specs.git --depth=1 $(RestSpecsRepo)
displayName: Clone the Git Repo
- bash: |
python $(Build.SourcesDirectory)/eng/scripts/run_oav_regression.py --oav oav --target $(RestSpecsRepo) --output $(OutputFolder) --type "${{ parameters.Type }}"
displayName: Run the Regression Script
timeoutInMinutes: 350
- task: PublishBuildArtifacts@1
condition: always()
inputs:
pathtoPublish: $(OutputFolder)
artifactName: "${{ parameters.TargetVersion }}-${{ parameters.Type }}"