forked from appium/appium-android-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
50 lines (46 loc) · 1.26 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
variables:
NODE_VERSION: 12.x
_FORCE_LOGS: 1
CI: true
MOCHA_TIMEOUT: 360000
parameters:
- name: integrationJobs
type: object
default:
- name: sdk22_e2e_tests_functional
category: /
- name: sdk22_e2e_tests_bootstrap
category: /bootstrap
- name: sdk22_e2e_tests_commands
category: /commands
- name: sdk22_e2e_tests_keyboard_commands
category: /commands/keyboard
- name: sdk22_e2e_tests_basic_commands
category: /commands/basic
- name: sdk22_e2e_tests_find_commands
category: /commands/find
- name: sdk22_e2e_tests_touch_commands
category: /commands/touch
stages:
- stage: Unit_Tests_And_Linters
jobs:
- job: Unit_Tests
pool:
vmImage: ubuntu-20.04
steps:
- task: NodeTool@0
inputs:
versionSpec: $(NODE_VERSION)
- script: npm run clean
displayName: Install Node dependencies
- script: npm run lint
displayName: Linter
- script: npx mocha -t $MOCHA_TIMEOUT --recursive build/test/unit/ -g @skip-ci -i --exit
displayName: Tests
- stage: Integration_Tests
jobs:
- ${{ each job in parameters.integrationJobs }}:
- template: .azure-pipelines/templates/android-e2e-template.yml
parameters:
name: ${{ job.name }}
category: ${{ job.category }}