diff --git a/Tests/Appveyor.ps1 b/Tests/Appveyor.ps1 index 0c934523..0bc1d783 100644 --- a/Tests/Appveyor.ps1 +++ b/Tests/Appveyor.ps1 @@ -29,15 +29,18 @@ if ($env:CI -ne $true) Write-Host Write-Host ('Project name: {0}' -f $env:APPVEYOR_PROJECT_NAME) -ForegroundColor Cyan +Write-Host ('Commit: {0}' -f $env:APPVEYOR_REPO_COMMIT) -ForegroundColor Cyan +Write-Host (' - Author: {0}' -f $env:APPVEYOR_REPO_COMMIT_AUTHOR) -ForegroundColor Cyan +Write-Host (' - Time: {0}' -f $env:APPVEYOR_REPO_COMMIT_TIMESTAMP) -ForegroundColor Cyan +Write-Host (' - Message: {0}' -f $env:APPVEYOR_REPO_COMMIT_MESSAGE) -ForegroundColor Cyan +Write-Host (' - Extended message: {0}' -f $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED) -ForegroundColor Cyan Write-Host ('AppVeyor build ID: {0}' -f $env:APPVEYOR_BUILD_ID) -ForegroundColor Cyan Write-Host ('AppVeyor build number: {0}' -f $env:APPVEYOR_BUILD_NUMBER) -ForegroundColor Cyan Write-Host ('AppVeyor build version: {0}' -f $env:APPVEYOR_BUILD_VERSION) -ForegroundColor Cyan -Write-Host ('AppVeyor Job ID: {0}' -f $JobID) -ForegroundColor Cyan -Write-Host ('Commit message: {0}' -f $env:APPVEYOR_REPO_COMMIT_MESSAGE) -ForegroundColor Cyan -Write-Host ('Extended commit message: {0}' -f $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED) -ForegroundColor Cyan +Write-Host ('AppVeyor job ID: {0}' -f $JobID) -ForegroundColor Cyan Write-Host ('Build triggered from tag? {0}' -f $env:APPVEYOR_REPO_TAG) -ForegroundColor Cyan Write-Host (' - Tag name: {0}' -f $env:APPVEYOR_REPO_TAG_NAME) -ForegroundColor Cyan -Write-Host ('PowerShell version: {0}' -f $PSVersionTable.PSVersion.ToString()) +Write-Host ('PowerShell version: {0}' -f $PSVersionTable.PSVersion.ToString()) -ForegroundColor Cyan Write-Host Write-Host "AppVeyor tests initialized (Job ID $JobId)" -ForegroundColor Cyan diff --git a/Tests/Deploy.ps1 b/Tests/Deploy.ps1 index 00937837..574beb55 100644 --- a/Tests/Deploy.ps1 +++ b/Tests/Deploy.ps1 @@ -30,7 +30,8 @@ function Update-ModuleManifest { Set-Content -Path $Path -Value $ManifestContent $ManifestContent -match '(?<=ModuleVersion\s+=\s+'')(?.*)(?='')' | Out-Null - Write-Host ('Module Version patched: ' + $Matches.ModuleVersion) + Write-Host 'Module Version patched: ' -ForegroundColor Cyan -NoNewline + Write-Host $Matches.ModuleVersion -ForegroundColor Green } #endregion @@ -47,9 +48,11 @@ Write-Host $ModuleRoot -ForegroundColor Green $shouldDeploy = $false if ($env:APPVEYOR_REPO_COMMIT_MESSAGE -notmatch '\[release\]' -and $env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -notmatch 'release') { - Write-Host "This commit does not include the message [release], so it will not be published." + Write-Host "This commit does not include the message " -ForegroundColor Yellow -NoNewline + Write-Host "[release]" -ForegroundColor Green -NoNewline + Write-Host ", so it will not be published." -ForegroundColor Yellow } elseif ($env:APPVEYOR_REPO_BRANCH -ne 'master') { - Write-Host "This commit is not to branch [master], so it will not be published." + Write-Host "This commit is not to branch [master], so it will not be published." -ForegroundColor Yellow } elseif ($PSVersionTable.PSVersion -lt '5.0.0') { Write-Warning "We are not running in a PowerShell 5 environment, so the module cannot be pulbished." } else { @@ -90,3 +93,7 @@ if ($shouldDeploy) Write-Host "Publishing module to PowerShell Gallery" -BackgroundColor Blue -ForegroundColor White Publish-Module @publishParams } + +Write-Host +Write-Host "=== Completed Deploy.ps1 ===" -ForegroundColor Green +Write-Host \ No newline at end of file