-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
53 lines (42 loc) · 1.09 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.16.x'
displayName: 'Install Node.js'
- script: |
npm ci
npm run build
displayName: 'install and build'
- script: |
npm install mocha-junit-reporter --no-save
npm test -- --reporter mocha-junit-reporter
displayName: 'run tests'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testRunner: JUnit
testResultsFiles: '**/test-results.xml'
- script: npm prune --production
displayName: 'uninstall dev dependencies'
- task: CopyFiles@2
inputs:
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: |
dist/**/*.js
!dist/test/*
static/**/*
views/**/*
node_modules/**/*
TargetFolder: '$(Build.BinariesDirectory)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/at11_build$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1