-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
55 lines (46 loc) · 984 Bytes
/
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
trigger:
branches:
include:
- master
- develop
tags:
include:
- v*
pr:
- master
- develop
pool:
vmImage: 'macos-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- script: |
echo no | npm install -g nativescript
ns usage-reporting disable
ns error-reporting disable
displayName: 'Install NativeScript CLI'
- script: |
npm install
displayName: 'npm install'
- script: |
npm run lint
displayName: 'Lint'
- script: |
ns build android
displayName: 'Build'
- script: |
./ci-tools/wait-for-emulator.sh
ns test android --watch false --justlaunch
displayName: 'Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'src/test-reports/**/report.xml'