forked from onivim/oni2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
166 lines (148 loc) · 5.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# 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
name: $(Build.SourceVersion)
jobs:
- job: Hygiene_Checks
displayName: 'Hygiene Checks'
timeoutInMinutes: 0
pool:
vmImage: 'macOS 10.13'
variables:
STAGING_DIRECTORY: /Users/vsts/STAGING
STAGING_DIRECTORY_UNIX: /Users/vsts/STAGING
ESY__CACHE_INSTALL_PATH: /Users/vsts/.esy/3____________________________________________________________________/i
ESY__CACHE_SOURCE_TARBALL_PATH: /Users/vsts/.esy/source/i
# ESY__NPM_ROOT: /usr/local/lib/node_modules/esy
steps:
- script: brew update
- script: brew install libpng ragel
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-check-hygiene.yml
- template: .ci/publish-build-cache.yml
- job: Linux
timeoutInMinutes: 0
pool:
vmImage: 'Ubuntu 16.04'
variables:
STAGING_DIRECTORY: /home/vsts/STAGING
STAGING_DIRECTORY_UNIX: /home/vsts/STAGING
ESY__CACHE_INSTALL_PATH: /home/vsts/.esy/3_____________________________________________________________________/i
ESY__CACHE_SOURCE_TARBALL_PATH: /home/vsts/.esy/source/i
# ESY__NPM_ROOT: /opt/hostedtoolcache/node/8.14.0/x64/lib/node_modules/esy
steps:
- script: sudo apt-get update
- script: sudo apt-get install -y libacl1-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libegl1-mesa-dev mesa-utils mesa-utils-extra ragel libgtk-3-dev
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: linux
- script: _release/Onivim2.AppDir/usr/bin/Oni2 -f --checkhealth
displayName: 'Release: --checkhealth'
- template: .ci/publish-linux.yml
- template: .ci/publish-build-cache.yml
- job: MacOS
timeoutInMinutes: 0
pool:
vmImage: 'macOS 10.13'
variables:
STAGING_DIRECTORY: /Users/vsts/STAGING
STAGING_DIRECTORY_UNIX: /Users/vsts/STAGING
ESY__CACHE_INSTALL_PATH: /Users/vsts/.esy/3____________________________________________________________________/i
ESY__CACHE_SOURCE_TARBALL_PATH: /Users/vsts/.esy/source/i
# ESY__NPM_ROOT: /usr/local/lib/node_modules/esy
steps:
- script: brew update
- script: brew install libpng ragel
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: darwin
- script: _release/Onivim2.App/Contents/MacOS/Oni2 -f --checkhealth
displayName: 'Release: --checkhealth'
- template: .ci/publish-osx.yml
- template: .ci/publish-build-cache.yml
- job: Windows
timeoutInMinutes: 0
pool:
vmImage: 'vs2017-win2016'
variables:
STAGING_DIRECTORY: C:\Users\VssAdministrator\STAGING
STAGING_DIRECTORY_UNIX: /C/Users/VssAdministrator/STAGING
ESY__CACHE_INSTALL_PATH: /C/Users/VssAdministrator/.esy/3_/i
ESY__CACHE_SOURCE_TARBALL_PATH: /C/Users/VssAdministrator/.esy/source/i
# ESY__NPM_ROOT: /C/npm/prefix/node_modules/esy
steps:
- powershell: ./scripts/windows/verify-signtool.ps1
displayName: 'Validate signtool path'
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/js-build-steps.yml
- template: .ci/esy-build-steps.yml
parameters:
platform: windows
- script: dir
workingDirectory: _release/win32
displayName: 'check directory contents'
- script: Oni2.exe -f --checkhealth
workingDirectory: _release/win32
displayName: 'Release: --checkhealth'
- template: .ci/publish-win.yml
- template: .ci/publish-build-cache.yml
- job: ValidateLinuxRelease
displayName: "Linux: Validate Release"
dependsOn: Linux
pool:
vmImage: 'Ubuntu 16.04'
steps:
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Linux'
downloadPath: '$(System.ArtifactsDirectory)'
- script: ./scripts/linux/validate-release.sh
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- job: ValidateMacOSRelease
displayName: "MacOS: Validate Release"
dependsOn: MacOS
pool:
vmImage: 'macOS 10.14'
steps:
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Darwin'
downloadPath: '$(System.ArtifactsDirectory)'
- script: ./scripts/osx/validate-release.sh
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)
- job: ValidateWindowsRelease
displayName: "Windows: Validate Release"
dependsOn: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- script: 'echo ArtifactDir: $(System.ArtifactsDirectory)'
displayName: 'Echo artifact dir'
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'Release_Windows'
downloadPath: '$(System.ArtifactsDirectory)'
- powershell: ./scripts/windows/validate-release.ps1
env:
SYSTEM_ARTIFACTSDIRECTORY: $(System.ArtifactsDirectory)