Skip to content

Commit

Permalink
Add temporary appveyor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RamblingCookieMonster committed Aug 5, 2016
1 parent 61fc090 commit b46162c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tests/appveyor.pester.ps1
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions appveyor.yml
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions 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
19 changes: 19 additions & 0 deletions 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'
}
}

0 comments on commit b46162c

Please sign in to comment.