-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
39 lines (33 loc) · 1013 Bytes
/
azure-pipelines.yml
File metadata and controls
39 lines (33 loc) · 1013 Bytes
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
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.14'
displayName: "Set Python Version"
- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
displayName: "Install Dependencies"
- script: |
python -m behave --tags=@iosApp --junit --junit-directory test-results/ios
displayName: "Run iOS App Automation Tests"
env:
# These must match the EXACT names in your Pipeline Variables UI
LT_USERNAME: $(LT_USERNAME)
LT_ACCESS_KEY: $(LT_ACCESS_KEY)
- script: |
python -m behave --tags=@androidApp --junit --junit-directory test-results/android
displayName: "Run Android App Automation Tests"
condition: succeededOrFailed()
env:
LT_USERNAME: $(LT_USERNAME)
LT_ACCESS_KEY: $(LT_ACCESS_KEY)
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/test-results/**/*.xml'
testRunTitle: 'LambdaTest Results'
condition: succeededOrFailed()