File tree Expand file tree Collapse file tree 4 files changed +11
-338
lines changed Expand file tree Collapse file tree 4 files changed +11
-338
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ version: '{build}'
2
2
skip_tags : true
3
3
4
4
environment :
5
+ BuildToolsVersion : ' 1.1.*'
5
6
StatementCoverageThreshold : 100
6
7
FunctionCoverageThreshold : 100
7
8
# SkipUnitTests: true
@@ -11,12 +12,19 @@ environment:
11
12
secure : EaMePsm8eU/bUd1Ej83dTOAaGja/ht/3IrKC84nbZ9+dQbjeDfbTHk7nM+wp9DgE
12
13
GitHubToken :
13
14
secure : LznJHcvQE4ZRnDPWnayvawgr7VSpwH6ImeN6OK6tmLh5UHKdfZu6qKQ+ZBbkei73
14
- CoverallsToken :
15
- secure : /ngZ21bXk70+rS+xerRSmrIhpLu1l0mMICu62uo8Lp4YMlRCn5HoG3sBl/X2zRDv
16
15
17
16
os : WMF 5
18
17
19
18
build : false
20
19
21
20
test_script :
22
- - ps : . .\build\Start-Build.ps1 -Task Deploy
21
+ - ps : >-
22
+ $ErrorActionPreference = 'Stop';
23
+ $Response = Invoke-RestMethod -Uri 'https://api.github.com/repos/nicholasdille/powershell-build/releases';
24
+ $Release = $Response | Where-Object { $_.tag_name -like $env:BuildToolsVersion } | Sort-Object -Property tag_name -Descending | Select-Object -First 1;
25
+ Write-Host -ForegroundColor Yellow -Message "Using version $($Release.tag_name) of build tools";
26
+ Invoke-WebRequest -Uri $Release.zipball_url -OutFile Build.zip;
27
+ Expand-Archive -Path '.\Build.zip' -DestinationPath .;
28
+ Remove-Item -Path '.\Build.zip';
29
+ Get-Item -Path nicholasdille-PowerShell-Build-* | Rename-Item -NewName 'Build';
30
+ .\Build\Start-Build.ps1 -Task Deploy
You can’t perform that action at this time.
0 commit comments