-
Notifications
You must be signed in to change notification settings - Fork 825
/
azure-pipelines.yml
76 lines (61 loc) · 1.79 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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 only "by hand"
trigger: none
pr: none
pool:
vmImage: "ubuntu-latest"
jobs:
- job: JqueryUIPreact
steps:
- checkout: self
persistCredentials: true
clean: true
- task: NodeTool@0
inputs:
versionSpec: "14.x"
displayName: "Install Node.js"
- task: CopyFiles@2
inputs:
SourceFolder: "$(Build.SourcesDirectory)/"
Contents: "package.json"
TargetFolder: "$(Build.SourcesDirectory)/Temp/"
OverWrite: true
displayName: "Copy package.json for cache key"
- task: Cache@2
inputs:
key: 'npm-cache-library | $(Build.SourcesDirectory)/Temp/package.json'
path: $(Build.SourcesDirectory)/node_modules
cacheHitVar: NPM_CACHE_RESTORED
displayName: Cache NPMs
- task: Npm@1
displayName: 'NPM install'
inputs:
command: install
verbose: false
condition: ne(variables.NPM_CACHE_RESTORED, 'true')
- script: |
npm run build_core
npm run build_i18n
npm run build-plugins
displayName: "Build Core"
- script: |
npm run build_jquery_ui_prod
displayName: "Build jquery-ui_prod"
- script: |
npm run test:postcss
displayName: "check postcss compatibility"
- script: |
npm run testsingle
displayName: "run unit tests"
- script: |
npm run lint
displayName: "eslint check"
# - script: |
# npm run test:jquery-ui:single
# displayName: "run markup tests"
- script: |
npm run testcafe:jquery-ui
displayName: "run functional tests"