Create the zip before

This commit is contained in:
dfinke
2018-07-15 12:35:51 -04:00
parent 6950463966
commit 21ebf6fc73

View File

@@ -1,5 +1,9 @@
$PSVersionTable.PSVersion
## Create the zip before the tests run
## Otherwise the EPPlus.dll is in use after the Pester run
Compress-Archive -Path . -DestinationPath .\ImportExcel.zip
if ((Get-Module -ListAvailable pester) -eq $null) {
Install-Module -Name Pester -Repository PSGallery -Force
}
@@ -8,6 +12,4 @@ $result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru
if ($result.FailedCount -gt 0) {
throw "$($result.FailedCount) tests failed."
}
Compress-Archive -Path . -DestinationPath .\ImportExcel.zip
}