forked from UiPath/angular-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
63 lines (59 loc) · 2.09 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
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
jobs:
- job: Checks
pool :
vmImage: 'ubuntu-latest'
steps:
- template: .ci/templates/steps/initialize-environment.yml
- template: .ci/templates/steps/install-dependencies.yml
- script: |
npm run check:commits
displayName: 'Linting Commits'
- script: |
npm run check:exports
displayName: 'Check Public API'
condition: eq(variables['Build.SourceBranchName'], 'merge')
- job: Test
pool :
vmImage: 'ubuntu-latest'
steps:
- template: .ci/templates/steps/initialize-environment.yml
- template: .ci/templates/steps/install-dependencies.yml
- template: .ci/templates/steps/test.yml
parameters:
codeCoverage: 'true'
dependsOn:
- Checks
condition: or(ne(variables['Build.SourceBranchName'], 'merge'), succeeded('Checks'))
- job: Build
pool :
vmImage: 'ubuntu-latest'
steps:
- template: .ci/templates/steps/initialize-environment.yml
- template: .ci/templates/steps/install-dependencies.yml
- template: .ci/templates/steps/create-bundle.yml
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: dist/angular
artifactName: '@uipath/angular'
displayName: 'Publish @uipath/angular binaries'
condition: succeeded()
dependsOn:
- Checks
condition: or(ne(variables['Build.SourceBranchName'], 'merge'), succeeded('Checks'))
- job: Documentation
pool :
vmImage: 'ubuntu-latest'
steps:
- template: .ci/templates/steps/initialize-environment.yml
- template: .ci/templates/steps/install-dependencies.yml
- script: |
npm run docs
displayName: 'Generating Docs'
- script: |
git config user.email [email protected]
git config user.name "Azure Pipelines"
node .build/publish-gh-pages
displayName: 'Publishing Docs'
condition: eq(variables['Build.SourceBranchName'], 'master')