forked from sedwards2009/extraterm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
116 lines (111 loc) · 3.95 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
name: $(Date:yyyyMMdd)$(Rev:.r)_$(SourceBranchName)
trigger:
branches:
include:
- master
- release/*
tags:
include:
- v*
jobs:
- job: commands_zip
displayName: "Build commands.zip"
pool:
vmImage: 'Ubuntu-16.04'
steps:
- script: yarn install --frozen-lockfile
displayName: 'Yarn install'
- script: yarn run package-commands-zip --version=$(git describe --tags)
displayName: 'Run yarn package-commands-zip'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/build_tmp'
contents: '*.zip'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'commands build output'
targetPath: '$(Build.ArtifactStagingDirectory)'
- job: package_linux
displayName: "Build Linux packages"
pool:
vmImage: 'Ubuntu-16.04'
steps:
- script: yarn install --frozen-lockfile
displayName: "yarn install"
- script: yarn run electron-rebuild
displayName: "yarn run electron-rebuild"
- script: yarn run build
displayName: "yarn run build"
- script: yarn run test
displayName: "yarn run test"
- script: yarn run package-linux --version=$(git describe --tags)
displayName: "yarn run package-linux"
- script: cp $(Build.SourcesDirectory)/build_tmp/*.zip $(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'Linux build output'
targetPath: '$(Build.ArtifactStagingDirectory)'
- job: package_windows
displayName: "Build Windows packages"
pool:
vmImage: 'vs2017-win2016'
steps:
- script: choco install nsis -y
displayName: "install nsis"
- script: choco install zip -y
displayName: "install zip"
- script: yarn install --frozen-lockfile
displayName: "yarn install"
- script: yarn run electron-rebuild
displayName: "yarn run electron-rebuild-win32"
- script: yarn run build
displayName: "yarn run build"
- script: yarn run test
displayName: "yarn run test"
- script: |
PATH=C:\Program Files (x86)\NSIS\;%PATH%
git describe --tags > APP_VERSION.txt
set /p APP_VERSION= < APP_VERSION.txt
del APP_VERSION.txt
yarn run package-windows --version=%APP_VERSION%
displayName: "yarn run package-windows"
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/build_tmp'
contents: '*.zip'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/build_tmp'
contents: '*.exe'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'Windows build output'
targetPath: '$(Build.ArtifactStagingDirectory)'
- job: package_macos
displayName: "Build macOS packages"
pool:
vmImage: 'macOS-10.13'
steps:
- task: NodeTool@0
inputs:
versionSpec: '>=8.11.0'
- script: yarn install --frozen-lockfile
displayName: "yarn install"
- script: yarn run electron-rebuild
displayName: "yarn run electron-rebuild"
- script: yarn run build
displayName: "yarn run build"
- script: yarn run test
displayName: "yarn run test"
- script: yarn run package-macos --version=$(git describe --tags)
displayName: "yarn run package-macos"
- script: |
cp $(Build.SourcesDirectory)/build_tmp/*.zip $(Build.ArtifactStagingDirectory)
cp $(Build.SourcesDirectory)/build_tmp/*.dmg $(Build.ArtifactStagingDirectory)
- task: PublishPipelineArtifact@0
inputs:
artifactName: 'macOS build output'
targetPath: '$(Build.ArtifactStagingDirectory)'