-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathazure-pipelines.yml
51 lines (44 loc) · 1.25 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- development
jobs:
- job: armkit
timeoutInMinutes: 10
pool:
vmImage: 'ubuntu-18.04'
steps:
# Node.js tool installer
# Finds or downloads and caches the specified version spec of Node.js and adds it to the PATH
- task: NodeTool@0
inputs:
versionSpec: '13.x'
checkLatest: true
# yarn install, build packages
- bash: |
yarn install
displayName: 'Yarn install'
# yarn build packages/@armkit/core
- bash: |
yarn build
workingDirectory: packages/@armkit/core
displayName: 'Yarn build @armkit/core'
# yarn build armkit-cli
- bash: |
yarn build
workingDirectory: packages/armkit-cli
displayName: 'Yarn build armkit-cli'
# yarn test run for amkit-cli
- bash: |
yarn test
displayName: 'Run yarn test'
workingDirectory: packages/armkit-cli
# yarn build examples
- bash: |
yarn generate
yarn build
node index.js
workingDirectory: examples/basic
displayName: 'Yarn build examples'