forked from docker-archive/communitytools-image2docker-win
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
16 lines (14 loc) · 862 Bytes
/
appveyor.yml
File metadata and controls
16 lines (14 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
version: 1.5.1.{build}
build: off
install:
- ps: |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Install-Module -Name Pester,PSScriptAnalyzer,PowerShellGet -Repository PSGallery -Force
test_script:
- ps: |
$testResultsFile = ".\TestsResults.xml"
$tempModulePath = (Resolve-Path (join-path $PWD '..')).ProviderPath
$env:PSModulePath = "$env:PSModulePath;$tempModulePath"
$res = Invoke-Pester $env:APPVEYOR_BUILD_FOLDER\Tests\Image2Docker.Tests.ps1 -OutputFormat NUnitXml -OutputFile $testResultsFile -PassThru
(New-Object 'System.Net.WebClient').UploadFile("https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $testResultsFile))
if ($res.FailedCount -gt 0) { throw "$($res.FailedCount) tests failed."} else {return}