-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
140 lines (126 loc) · 3.27 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
trigger:
branches:
include:
- master
tags:
include:
- v*.*.*
variables:
- group: GITERM_CERT_GROUP
pool:
vmImage: 'ubuntu-18.04'
stages:
- stage: JSChecks
jobs:
- job: JSChecks
pool:
vmImage: 'macOS-10.15'
steps:
- task: UseNode@1
inputs:
version: '14.x'
checkLatest: true
- publish: $(Build.SourcesDirectory)
artifact: SourceCode
displayName: Publish Source Code
- script: |
sudo apt install libkrb5-dev
yarn install --network-timeout=100000
yarn build-js
displayName: Install
- script: |
yarn lint
displayName: Lint
- script: |
# Support git CLI usage in tests
git config --global user.email \"[email protected]\"
git config --global user.name \"Test\"
yarn test
displayName: Unit Tests
- script: |
yarn e2e
displayName: E2E Tests
workingDirectory: $(Build.SourcesDirectory)/packages/giterm-e2e/
- publish: $(Build.SourcesDirectory)/packages/giterm-e2e/.chromedriver.logs
artifact: ChromedriverLogs
displayName: Publish Logs
condition: succeededOrFailed()
- stage: Build
jobs:
- job: Mac
pool:
vmImage: 'macOS-10.15'
steps:
- task: UseNode@1
inputs:
version: '14.x'
checkLatest: true
- task: DownloadSecureFile@1
displayName: Download Application Signing Certificate
name: certApp
inputs:
secureFile: 'DevIdApplication.p12'
- script: |
yarn install --network-timeout=100000
displayName: Install
- script: |
yarn build-js
displayName: Build Packages
- script: |
cd packages/giterm
yarn pack:mac
yarn rimraf dist/mac
displayName: Build
env:
APPLEID: $(GITERM_APPLEID_UN)
APPLEIDPASS: $(GITERM_APPLEID_PW)
CSC_LINK: $(certApp.secureFilePath)
CSC_KEY_PASSWORD: $(GITERM_CERT_PW)
- publish: $(Build.SourcesDirectory)/packages/giterm/dist
artifact: GitermMac
displayName: Publish Mac Build
- job: Linux
steps:
- task: UseNode@1
inputs:
version: '14.x'
checkLatest: true
- script: |
sudo apt install libkrb5-dev
yarn install --network-timeout=100000
displayName: Install
- script: |
yarn build-js
displayName: Build Packages
- script: |
cd packages/giterm
yarn pack:linux
yarn rimraf dist/linux-unpacked dist/.icon-set
displayName: Build
- publish: $(Build.SourcesDirectory)/packages/giterm/dist
artifact: GitermLinux
displayName: Publish Linux Build
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseNode@1
inputs:
version: '14.x'
checkLatest: true
- script: |
yarn install --network-timeout=100000
displayName: Install
- script: |
yarn build-js
displayName: Build Packages
- script: |
cd packages/giterm
yarn pack:win
displayName: Build
- script: |
yarn rimraf dist/win-unpacked
displayName: Clean Artifacts
- publish: $(Build.SourcesDirectory)/packages/giterm/dist
artifact: GitermWindows
displayName: Publish Windows Build