зеркало из https://github.com/Azure/autorest.az.git
pipeline change
This commit is contained in:
Родитель
846d4dbe08
Коммит
12fda00e21
|
@ -0,0 +1,79 @@
|
|||
trigger:
|
||||
- master
|
||||
|
||||
variables:
|
||||
NodeVersion: '10.x'
|
||||
|
||||
jobs:
|
||||
- job: 'Build'
|
||||
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '$(NodeVersion)'
|
||||
displayName: 'Install Node.js $(NodeVersion)'
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'npm install'
|
||||
inputs:
|
||||
verbose: false
|
||||
|
||||
- script: 'npx @microsoft/rush sync-versions && npx @microsoft/rush update && npx @microsoft/rush rebuild'
|
||||
displayName: 'npm build'
|
||||
|
||||
- script: 'npx @microsoft/rush publish --publish --pack --include-all --tag latest'
|
||||
displayName: 'npm pack'
|
||||
|
||||
- job: 'Analyze'
|
||||
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '$(NodeVersion)'
|
||||
displayName: 'Install Node.js $(NodeVersion)'
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'npm install'
|
||||
inputs:
|
||||
command: install
|
||||
|
||||
- task: Npm@1
|
||||
displayName: 'npm audit'
|
||||
condition: and(succeeded(), eq(variables['RunNpmAudit'], 'true'))
|
||||
inputs:
|
||||
command: custom
|
||||
customCommand: 'audit'
|
||||
|
||||
- job: Windows
|
||||
displayName: credentialScan
|
||||
pool:
|
||||
vmImage: "windows-2019"
|
||||
|
||||
steps:
|
||||
- task: CredScan@2
|
||||
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'
|
||||
|
|
@ -23,11 +23,6 @@ steps:
|
|||
npx @microsoft/rush sync-versions
|
||||
npx @microsoft/rush update
|
||||
|
||||
# set the actual package versions and update again
|
||||
npx @microsoft/rush set-versions
|
||||
npx @microsoft/rush sync-versions
|
||||
npx @microsoft/rush update
|
||||
|
||||
# compile the code
|
||||
npx @microsoft/rush rebuild
|
||||
|
Загрузка…
Ссылка в новой задаче