forked from appium/appium-uiautomator2-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
54 lines (51 loc) · 1.23 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
variables:
_FORCE_LOGS: 1
CI: true
NODE_VERSION: 12.x
parameters:
- name: integrationJobs
type: object
default:
- name: sdk28
platformVersion: 9.0
sdkVersion: 28
emuTag: default
- name: sdk25
platformVersion: 7.1
sdkVersion: 25
emuTag: default
- name: sdk22
platformVersion: 5.1
sdkVersion: 22
emuTag: default
- 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_8_X64)
PATH: $(JAVA_HOME_8_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 }}
testName: ${{ test.name }}