зеркало из https://github.com/Azure/sway.git
63 строки
1.3 KiB
YAML
63 строки
1.3 KiB
YAML
trigger:
|
|
- validation
|
|
|
|
jobs:
|
|
- job: build
|
|
pool:
|
|
vmImage: 'Ubuntu 16.04'
|
|
steps:
|
|
- task: Npm@1
|
|
displayName: 'npm install'
|
|
inputs:
|
|
verbose: false
|
|
|
|
- task: Gulp@0
|
|
displayName: 'gulp '
|
|
inputs:
|
|
publishJUnitResults: true
|
|
enableCodeCoverage: true
|
|
|
|
- task: Npm@1
|
|
displayName: 'npm pack'
|
|
inputs:
|
|
command: custom
|
|
verbose: false
|
|
customCommand: pack
|
|
|
|
- task: CopyFiles@2
|
|
displayName: 'Copy Files to: drop'
|
|
inputs:
|
|
Contents: '*.tgz'
|
|
TargetFolder: drop
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
inputs:
|
|
pathtoPublish: $(Build.SourcesDirectory)/drop
|
|
|
|
- job: Windows
|
|
pool:
|
|
vmImage: "windows-2019"
|
|
steps:
|
|
- task: CredScan@2
|
|
displayName: 'Run CredScan'
|
|
continueOnError: true
|
|
inputs:
|
|
toolMajorVersion: "V2"
|
|
|
|
|
|
- task: PostAnalysis@1
|
|
inputs:
|
|
AllTools: false
|
|
APIScan: false
|
|
BinSkim: false
|
|
CodesignValidation: false
|
|
CredScan: true
|
|
FortifySCA: false
|
|
FxCop: false
|
|
ModernCop: false
|
|
PoliCheck: false
|
|
RoslynAnalyzers: false
|
|
SDLNativeRules: false
|
|
Semmle: false
|
|
TSLint: false
|
|
ToolLogsNotFoundAction: "Standard" |