1 Star 0 Fork 0

jishichang/ng-zorro-antd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
azure-pipelines.yml 2.64 KB
一键复制 编辑 原始数据 按行查看 历史
wenqi73 提交于 2020-09-23 15:48 . build: fix build pipeline (#5824)
# Node.js with Angular
# Build a Node.js project that uses Angular.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: env
jobs:
- job: Nodes
steps:
- task: NodeTool@0
inputs:
versionSpec: '12.13.1'
displayName: 'Install Node.js'
- stage: build
jobs:
- job: build_site
steps:
- task: Npm@1
inputs:
command: 'install'
- script: |
npm run build
export DEPLOY_DOMAIN=https://preview-${SYSTEM_PULLREQUEST_PULLREQUESTNUMBER}-ng-zorro-antd.surge.sh
echo 'version' >> dist/.surgeignore
echo 'issue-helper' >> dist/.surgeignore
npx surge --project ./dist --domain $DEPLOY_DOMAIN
tar czvf build.tgz lib dist
- task: CopyFiles@2
inputs:
contents: build.tgz
targetFolder: $(Build.ArtifactStagingDirectory)
displayName: 'Copy archives to artifacts staging directory'
- task: PublishBuildArtifacts@1
inputs:
path: $(Build.ArtifactStagingDirectory)
displayName: 'Upload artifacts'
dependsOn: env
- stage: test
jobs:
- job: test_components
steps:
- task: Npm@1
inputs:
command: 'install'
- script: |
npm run test
cat ./coverage-report/lcov.info | ./node_modules/.bin/codecov
- task: PublishCodeCoverageResults@1
displayName: 'publish code coverage results'
condition: succeededOrFailed()
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(System.DefaultWorkingDirectory)/coverage-report/cobertura-coverage.xml
reportDirectory: $(System.DefaultWorkingDirectory)/coverage-report
failIfCoverageEmpty: true
- task: PublishTestResults@2
displayName: 'publish test results'
condition: succeededOrFailed()
inputs:
searchFolder: $(System.DefaultWorkingDirectory)/junit
failTaskOnFailedTests: true
testRunTitle: NG-ZORRO
testResultsFormat: JUnit
testResultsFiles: "**/TESTS*.xml"
- job: test_schematics
steps:
- task: Npm@1
inputs:
command: 'install'
- script: npm run test:schematics
dependsOn: env
- stage: lint
jobs:
- job: lint_components
steps:
- task: Npm@1
inputs:
command: 'install'
- script: npm run lint
dependsOn: env
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jishichang/ng-zorro-antd.git
git@gitee.com:jishichang/ng-zorro-antd.git
jishichang
ng-zorro-antd
ng-zorro-antd
master

搜索帮助