Skip to content

Commit 3afeeab

Browse files
committed
Migrated to centralized build tools
1 parent 9b21feb commit 3afeeab

File tree

4 files changed

+11
-338
lines changed

4 files changed

+11
-338
lines changed

Build/Start-Build.ps1

Lines changed: 0 additions & 37 deletions
This file was deleted.

Build/deploy.psdeploy.ps1

Lines changed: 0 additions & 132 deletions
This file was deleted.

Build/psake.ps1

Lines changed: 0 additions & 166 deletions
This file was deleted.

appveyor.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: '{build}'
22
skip_tags: true
33

44
environment:
5+
BuildToolsVersion: '1.1.*'
56
StatementCoverageThreshold: 100
67
FunctionCoverageThreshold: 100
78
#SkipUnitTests: true
@@ -11,12 +12,19 @@ environment:
1112
secure: EaMePsm8eU/bUd1Ej83dTOAaGja/ht/3IrKC84nbZ9+dQbjeDfbTHk7nM+wp9DgE
1213
GitHubToken:
1314
secure: LznJHcvQE4ZRnDPWnayvawgr7VSpwH6ImeN6OK6tmLh5UHKdfZu6qKQ+ZBbkei73
14-
CoverallsToken:
15-
secure: /ngZ21bXk70+rS+xerRSmrIhpLu1l0mMICu62uo8Lp4YMlRCn5HoG3sBl/X2zRDv
1615

1716
os: WMF 5
1817

1918
build: false
2019

2120
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

0 commit comments

Comments
 (0)