From b46162cf006aff236205d435bbbda4d38e364c9e Mon Sep 17 00:00:00 2001 From: RamblingCookieMonster Date: Thu, 4 Aug 2016 22:20:41 -0400 Subject: [PATCH] Add temporary appveyor fix --- Tests/appveyor.pester.ps1 | 3 +++ appveyor.yml | 2 ++ build.ps1 | 5 +++++ requirements.depend.psd1 | 19 +++++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 build.ps1 create mode 100644 requirements.depend.psd1 diff --git a/Tests/appveyor.pester.ps1 b/Tests/appveyor.pester.ps1 index af97eaf..8bfe74e 100644 --- a/Tests/appveyor.pester.ps1 +++ b/Tests/appveyor.pester.ps1 @@ -9,6 +9,9 @@ param( [string]$ProjectRoot = $ENV:APPVEYOR_BUILD_FOLDER ) +# Temporary until we move to a better build pipeline... +$ENV:PSModulePath = $ENV:PSModulePath, 'C:\Temp' -join ";" + #Initialize some variables, move to the project root $Timestamp = Get-date -uformat "%Y%m%d-%H%M%S" $PSVersion = $PSVersionTable.PSVersion.Major diff --git a/appveyor.yml b/appveyor.yml index fb60815..68528bc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,6 +11,8 @@ install: build: false test_script: +# temporary to getbuild process working again... install pester and add to psmodulepath + - ps: . .\build.ps1 # Test with native PS version - ps: . .\Tests\appveyor.pester.ps1 -Test # Test with PS version 2 diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..12b810e --- /dev/null +++ b/build.ps1 @@ -0,0 +1,5 @@ +# Grab nuget bits, install modules, set build variables, start build. +Get-PackageProvider -Name NuGet -ForceBootstrap | Out-Null + +Install-Module PSDepend -Force +Invoke-PSDepend -Force -verbose \ No newline at end of file diff --git a/requirements.depend.psd1 b/requirements.depend.psd1 new file mode 100644 index 0000000..d8816a3 --- /dev/null +++ b/requirements.depend.psd1 @@ -0,0 +1,19 @@ +@{ + Psake = @{ + Target = 'C:\temp' + Parameters = @{ + Force = $True + Import = $True + } + AddToPath = $True + } + PSDeploy = @{ + Target = 'C:\temp' + } + Pester = @{ + Target = 'C:\temp' + } + BuildHelpers = @{ + Target = 'C:\temp' + } +} \ No newline at end of file