-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines-stable.yml
49 lines (41 loc) · 1.07 KB
/
azure-pipelines-stable.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
trigger:
branches:
include:
- stable
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Variables'
- script: |
npm install --g yarn
npm install --g lerna
npm install --g typescript
npm install
npx lerna bootstrap
NODE_ENV=production yarn --cwd=packages/styles build
NODE_ENV=production yarn --cwd=packages/react build
yarn build
displayName: 'Install Dependencies & Build'
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Setup pa11y'
- script: |
yarn dev &
sleep 5 && yarn test-pa11y-axe
yarn generate-pa11y-axe-report
yarn print-pa11y-axe-cli-results
yarn test-pa11y-htmlcs
yarn generate-pa11y-htmlcs-report
yarn print-pa11y-htmlcs-cli-results
- task: ArchiveFiles@2
displayName: 'Archive Step'
inputs:
rootFolderOrFile: '$(Build.SourcesDirectory)/docs/dist'
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1