forked from ionide/ionide-vscode-fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
70 lines (70 loc) · 2.65 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
name: $(Rev:r)
jobs:
- job: IonideFsharp
pool:
vmImage: 'vs2017-win2016'
steps:
- script: dotnet tool install fake-cli --tool-path .
displayName: Install FAKE
- powershell: |
$buildId = $env:BUILD_BUILDNUMBER;
$versionSuffixPR = "PR$($env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER).$buildId";
$branchName = "$env:BUILD_SOURCEBRANCHNAME".Replace("_","");
$versionSuffixBRANCH = "$branchName.$buildId";
$isPR = "$env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER" -ne "";
$versionSuffix = if ($isPR) { $versionSuffixPR } else { $versionSuffixBRANCH };
Write-Host "##vso[task.setvariable variable=VersionSuffix]$versionSuffix";
displayName: Set Prerelease Version
condition: eq(variables['ionide.isStableRelease'], 'false')
- task: NodeTool@0
displayName: Install Node
inputs:
versionSpec: "10.15.1"
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
displayName: Install Yarn
inputs:
versionSpec: "1.10.1"
- script: .\build.cmd InstallVSCE
displayName: Install VSCE
- script: .\build.cmd BuildPackage extVersionSuffix=%ExtVersionSuffix%
displayName: BuildPackage
env:
ExtVersionSuffix: '$(VersionSuffix)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'temp'
artifactName: 'ionide-fsharp-vscode-ext'
- job: ExperimentalFsharp
pool:
vmImage: 'vs2017-win2016'
steps:
- script: dotnet tool install fake-cli --tool-path .
displayName: Install FAKE
- powershell: |
$buildId = $env:BUILD_BUILDNUMBER;
$versionSuffixPR = "PR$($env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER).$buildId";
$branchName = "$env:BUILD_SOURCEBRANCHNAME".Replace("_","");
$versionSuffixBRANCH = "$branchName.$buildId";
$isPR = "$env:SYSTEM_PULLREQUEST_PULLREQUESTNUMBER" -ne "";
$versionSuffix = if ($isPR) { $versionSuffixPR } else { $versionSuffixBRANCH };
Write-Host "##vso[task.setvariable variable=VersionSuffix]$versionSuffix";
displayName: Set Prerelease Version
condition: eq(variables['ionide.isExperimentalRelease'], 'false')
- task: NodeTool@0
displayName: Install Node
inputs:
versionSpec: "10.15.1"
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
displayName: Install Yarn
inputs:
versionSpec: "1.10.1"
- script: .\build.cmd InstallVSCE
displayName: Install VSCE
- script: .\build.cmd BuildPackageExp extVersionSuffix=%ExtVersionSuffix%
displayName: BuildPackageExp
env:
ExtVersionSuffix: '$(VersionSuffix)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'temp'
artifactName: 'experimental-fsharp-vscode-ext'