Skip to content

Commit

Permalink
Clean up appveyor (#56)
Browse files Browse the repository at this point in the history
- Remove Appveyor integration which is no longer used
  • Loading branch information
BernieWhite authored Jan 14, 2019
1 parent 449a3c9 commit ce0df70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 66 deletions.
47 changes: 0 additions & 47 deletions PSDocs.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,49 +53,6 @@ function CopyModuleFiles {
}
}

function SendAppveyorTestResult {

[CmdletBinding()]
param (
[Parameter(Mandatory = $True)]
[String]$Uri,

[Parameter(Mandatory = $True)]
[String]$Path,

[Parameter(Mandatory = $False)]
[String]$Include = '*'
)

begin {
Write-Verbose -Message "[SendAppveyorTestResult] BEGIN::";
}

process {

try {
$webClient = New-Object -TypeName 'System.Net.WebClient';

foreach ($resultFile in (Get-ChildItem -Path $Path -Filter $Include -File -Recurse)) {

Write-Verbose -Message "[SendAppveyorTestResult] -- Uploading file: $($resultFile.FullName)";

$webClient.UploadFile($Uri, "$($resultFile.FullName)");
}
}
catch {
throw $_.Exception;
}
finally {
$webClient = $Null;
}
}

end {
Write-Verbose -Message "[SendAppveyorTestResult] END::";
}
}

task BuildDotNet {
exec {
# Build library
Expand Down Expand Up @@ -244,10 +201,6 @@ task TestModule Pester, PSScriptAnalyzer, {

$results = Invoke-Pester @pesterParams;

if (![String]::IsNullOrEmpty($Env:APPVEYOR_JOB_ID)) {
SendAppveyorTestResult -Uri "https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)" -Path '.\reports' -Include '*.xml';
}

# Throw an error if pester tests failed
if ($Null -eq $results) {
throw 'Failed to get Pester test results.';
Expand Down
19 changes: 0 additions & 19 deletions appveyor.yml

This file was deleted.

0 comments on commit ce0df70

Please sign in to comment.