forked from jessehouwing/BattleJSip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
72 lines (60 loc) · 1.63 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
trigger:
- main
pool:
name: Hosted
demands: npm
vmImage: 'ubuntu-latest'
variables:
project.rootDirectory: '$(Build.SourcesDirectory)/'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '2.x'
- task: Npm@1
displayName: 'npm install'
inputs:
workingDir: '$(project.rootDirectory)'
verbose: false
- task: Npm@1
displayName: 'npm run lint'
inputs:
command: custom
workingDir: '$(project.rootDirectory)'
verbose: false
customCommand: 'run lint'
- task: Npm@1
displayName: 'npm run build'
inputs:
command: custom
workingDir: '$(project.rootDirectory)'
verbose: false
customCommand: 'run build'
- task: Npm@1
displayName: 'npm run test'
inputs:
command: custom
workingDir: '$(project.rootDirectory)'
verbose: false
customCommand: 'run test-ci'
continueOnError: true
- task: PublishTestResults@2
displayName: 'Publish Test Results **\junit.xml'
inputs:
testResultsFiles: '**\junit.xml'
searchFolder: '$(project.rootDirectory)'
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from $(project.rootDirectory)/coverage/cobertura-coverage.xml'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(project.rootDirectory)/coverage/cobertura-coverage.xml'
reportDirectory: '$(project.rootDirectory)/coverage/'
additionalCodeCoverageFiles: '$(project.rootDirectory)/coverage/**/*'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(project.rootDirectory)/dist'