-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazure-pipelines.yml
55 lines (46 loc) · 1013 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
tags:
include:
- v*
pr:
- master
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: |
cd src
npm install
npm run ci.tslint
displayName: 'Lint'
- script: |
cd demo
npm install
ns build android --bundle --env.uglify --env.snapshot
displayName: 'Build'
- script: |
./ci-tools/wait-for-emulator.sh
cd demo
ns test android --watch false --justlaunch
displayName: 'Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'demo/app/test-reports/**/report.xml'