-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
35 lines (27 loc) · 1.12 KB
/
build.ps1
File metadata and controls
35 lines (27 loc) · 1.12 KB
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
#---------------------------------#
# Header #
#---------------------------------#
Write-Host 'Running AppVeyor build script' -ForegroundColor Yellow
Write-Host "ModuleName : $env:ModuleName"
Write-Host "Build version : $env:APPVEYOR_BUILD_VERSION"
Write-Host "Author : $env:APPVEYOR_REPO_COMMIT_AUTHOR"
Write-Host "Branch : $env:APPVEYOR_REPO_BRANCH"
#---------------------------------#
# BuildScript #
#---------------------------------#
Write-Host 'Nothing to build, skipping.....'
# Grab nuget bits, install modules, set build variables, start build.
Get-PackageProvider -Name NuGet -ForceBootstrap | Out-Null
Install-Module Psake, PSDeploy, Pester, BuildHelpers -force -verbose
Import-Module Psake, BuildHelpers -verbose
Write-Host 'Set Build Environment'
Set-BuildEnvironment
#Invoke-psake .\psake.ps1
#exit ( [int]( -not $psake.build_success ) )
Write-host "Get BuildVariables" -ForegroundColor Yellow
Get-BuildVariables
Write-host "Get-ProjectName" -ForegroundColor Yellow
Get-ProjectName
#Write-host "ENV:" -ForegroundColor Yellow
#gci env:
Invoke-psake .\psake.ps1