mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 07:43:23 +00:00
Create the zip before
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
$PSVersionTable.PSVersion
|
$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) {
|
if ((Get-Module -ListAvailable pester) -eq $null) {
|
||||||
Install-Module -Name Pester -Repository PSGallery -Force
|
Install-Module -Name Pester -Repository PSGallery -Force
|
||||||
}
|
}
|
||||||
@@ -9,5 +13,3 @@ $result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru
|
|||||||
if ($result.FailedCount -gt 0) {
|
if ($result.FailedCount -gt 0) {
|
||||||
throw "$($result.FailedCount) tests failed."
|
throw "$($result.FailedCount) tests failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
Compress-Archive -Path . -DestinationPath .\ImportExcel.zip
|
|
||||||
Reference in New Issue
Block a user