-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
60 lines (50 loc) · 1.18 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
trigger:
branches:
include:
- main
tags:
include:
- v*
pr:
- main
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'
displayName: 'Install JDK'
- script: |
python -m pip install --upgrade pip
python -m pip install six
echo no | npm install -g nativescript
ns usage-reporting disable
ns error-reporting disable
displayName: 'Install NativeScript CLI'
- script: |
npm run setup
displayName: 'Setup'
- script: |
npm start lint
displayName: 'Lint'
- script: |
npm start @awarns.build-all
displayName: 'Build'
- script: |
npm start apps.demo.build-android
displayName: 'Build demo'
- script: |
./ci-tools/wait-for-emulator.sh
npm start android-test-ci
displayName: 'Test'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'apps/demo/src/test-reports/**/report.xml'