This commit is contained in:
qiaozha 2019-12-16 13:28:50 +08:00
Родитель 846d4dbe08
Коммит 12fda00e21
2 изменённых файлов: 79 добавлений и 5 удалений

79
azure-pipelines/ci.yml Normal file
Просмотреть файл

@ -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