forked from Sitecore/jss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
50 lines (46 loc) · 1.1 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
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
branches:
include:
- master
- dev
paths:
include:
- /
exclude:
- docs/*
# should trigger builds for PRs targeting any of the listed branches
# should _not_ trigger builds for PRs that _only_ have changes in the docs folder
# should trigger builds for PRs that have changes in both docs folder _and_ any other folder besides docs
pr:
branches:
include:
- master
- dev
paths:
include:
- /
exclude:
- docs/*
pool:
# todo: we dgaf what specific version of Linux is installed, is there any way to wildcard the version?
vmImage: 'Ubuntu-16.04'
steps:
- script: |
npm ci
displayName: 'npm ci'
- script: |
npm run bootstrap-packages:ci
displayName: 'bootstrapping packages'
- script: |
npm run build-packages
displayName: 'building packages'
- script: |
npm run test-packages
displayName: 'running tests'
env: {
testEnv: 'ci'
}