Add description of the functions in appveyor.psm1

This commit is contained in:
Travis Plunk committed 2016-08-29 14:21:48 -07:00
1 parent f8520e06b3
commit 67ef752efb
1 file changed
+10 -1
+10 -1
View File
@@ -3,6 +3,8 @@ $repoRoot = Join-Path $PSScriptRoot '..'
Import-Module (Join-Path $repoRoot 'build.psm1') Import-Module (Join-Path $repoRoot 'build.psm1')
# Emulates running all of AppVeyor but locally
# should not be used on AppVeyor
function Invoke-AppVeyorFull function Invoke-AppVeyorFull
{ {
Invoke-AppVeyorInstall Invoke-AppVeyorInstall
@@ -11,6 +13,7 @@ function Invoke-AppVeyorFull
Invoke-AppveyorFinish Invoke-AppveyorFinish
} }
# Implements the AppVeyor 'build_script' step
function Invoke-AppVeyorBuild function Invoke-AppVeyorBuild
{ {
# check to be sure our test tags are correct # check to be sure our test tags are correct
@@ -23,11 +26,15 @@ function Invoke-AppVeyorBuild
Start-PSBuild -FullCLR Start-PSBuild -FullCLR
} }
# Implements the AppVeyor 'install' step
function Invoke-AppVeyorInstall function Invoke-AppVeyorInstall
{ {
Start-PSBootstrap -Force Start-PSBootstrap -Force
} }
# A wrapper to ensure that we upload test results
# and that if we are not able to that it does not fail
# the CI build
function Update-AppVeyorTestResults function Update-AppVeyorTestResults
{ {
param( param(
@@ -64,7 +71,7 @@ function Update-AppVeyorTestResults
Write-Warning "Pushing test Artifact failed..." Write-Warning "Pushing test Artifact failed..."
} }
} }
if(!$pushedResults -or !$pushedResults) if(!$pushedResults -or !$pushedResults)
{ {
Write-Warning "Failed to push all artifacts for $resultsFile" Write-Warning "Failed to push all artifacts for $resultsFile"
@@ -76,6 +83,7 @@ function Update-AppVeyorTestResults
} }
} }
# Implement AppVeyor 'Test_script'
function Invoke-AppVeyorTest function Invoke-AppVeyorTest
{ {
# #
@@ -118,6 +126,7 @@ function Invoke-AppVeyorTest
} }
} }
# Implements AppVeyor 'on_finish' step
function Invoke-AppveyorFinish function Invoke-AppveyorFinish
{ {
try { try {