forked from NordicSemiconductor/pc-nrf-dfu-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
28 lines (27 loc) · 832 Bytes
/
azure-pipelines.yml
File metadata and controls
28 lines (27 loc) · 832 Bytes
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
jobs:
- job: Build
pool:
vmImage: 'Ubuntu-16.04'
steps:
- task: NodeTool@0
inputs:
versionSpec: 10
- script: |
set -o errexit -o pipefail
npm i
npm run rollup
- job: Test
dependsOn: [
Build,
]
pool: server
steps:
- task: InvokeRESTAPI@1
displayName: Test
inputs:
connectionType: 'connectedServiceName'
serviceConnection: 'waylandJenkins'
method: 'POST'
urlSuffix: 'view/test/job/pc-nrf-dfu-js-test/buildWithParameters?BRANCH=$(Build.SourceBranch)&VSTS_URL=$(system.CollectionUri)&TOKEN=$(system.AccessToken)&PROJECT_ID=$(system.teamProjectId)&HUB_NAME=$(system.hostType)&PLAN_ID=$(system.planId)&TASK_ID=$(system.taskInstanceId)&JOB_ID=$(system.jobId)'
waitForCompletion: 'true'
condition: ne(variables['Build.Reason'], 'PullRequest')