forked from appium/appium-uiautomator2-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-pipelines.yml
63 lines (60 loc) · 1.42 KB
/
.azure-pipelines.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
variables:
_FORCE_LOGS: 1
CI: true
NODE_VERSION: 12.x
parameters:
- name: integrationJobs
type: object
default:
- name: sdk30
platformVersion: 11.0
sdkVersion: 30
emuTag: default
emuArch: x86_64
- name: sdk28
platformVersion: 9.0
sdkVersion: 28
emuTag: default
emuArch: x86
- name: sdk25
platformVersion: 7.1
sdkVersion: 25
emuTag: default
emuArch: x86
- name: sdk22
platformVersion: 5.1
sdkVersion: 22
emuTag: default
emuArch: x86
- name: tests
type: object
default:
- name: AlertCommandsTest
- name: ActionsCommandsTest
- name: GestureCommandsTest
- name: DeviceCommandsTest
- name: ElementCommandsTest
stages:
- stage: Unit_Tests_And_Linters
jobs:
- job: Unit_Tests
pool:
vmImage: ubuntu-20.04
steps:
- script: ./gradlew testServerDebugUnitTest
env:
JAVA_HOME: $(JAVA_HOME_11_X64)
PATH: $(JAVA_HOME_11_X64)/bin:$(PATH)
displayName: Tests
- stage: Integration_Tests
jobs:
- ${{ each job in parameters.integrationJobs }}:
- ${{ each test in parameters.tests }}:
- template: .azure-templates/integration-job.yml
parameters:
name: ${{ job.name }}_${{ test.name }}
platformVersion: ${{ job.platformVersion }}
sdkVersion: ${{ job.sdkVersion }}
emuTag: ${{ job.emuTag }}
emuArch: ${{ job.emuArch }}
testName: ${{ test.name }}