mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-11 05:43:17 +00:00
Put back DoTests and yml file. Updated readme for pivot groups
This commit is contained in:
@@ -7,21 +7,18 @@ param(
|
|||||||
##
|
##
|
||||||
|
|
||||||
$PSVersionTable.PSVersion
|
$PSVersionTable.PSVersion
|
||||||
$env:BUILD_ARTIFACTSTAGINGDIRECTORY
|
|
||||||
|
|
||||||
$VerbosePreference = "Continue"
|
|
||||||
## Create the zip before the tests run
|
## Create the zip before the tests run
|
||||||
## Otherwise the EPPlus.dll is in use after the Pester run
|
## Otherwise the EPPlus.dll is in use after the Pester run
|
||||||
$ModuleVersion = (Get-Content -Raw .\ImportExcel.psd1) | Invoke-Expression | ForEach-Object ModuleVersion
|
$ModuleVersion = (Get-Content -Raw .\ImportExcel.psd1) | Invoke-Expression | ForEach-Object ModuleVersion
|
||||||
|
|
||||||
if (!$DontCreateZip) {
|
if (!$DontCreateZip) {
|
||||||
if ($null -eq $env:BUILD_ARTIFACTSTAGINGDIRECTORY) {$env:BUILD_ARTIFACTSTAGINGDIRECTORY = '.'}
|
$dest = "ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss")
|
||||||
$dest = Join-Path -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY -ChildPath ("ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss"))
|
Compress-Archive -Path . -DestinationPath .\$dest
|
||||||
Compress-Archive -Path . -DestinationPath .\$dest -Verbose
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($null -eq (Get-Module -ListAvailable pester)) {
|
if ($null -eq (Get-Module -ListAvailable pester)) {
|
||||||
Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser -Verbose
|
Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru
|
$result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru
|
||||||
|
|||||||
@@ -55,6 +55,9 @@ Install-Module ImportExcel
|
|||||||
|
|
||||||
# What's new
|
# What's new
|
||||||
- Set-ExcelRow and Set-ExcelColumn now check that the worksheet name they passed exists in the workbook.
|
- Set-ExcelRow and Set-ExcelColumn now check that the worksheet name they passed exists in the workbook.
|
||||||
|
- Added parameters -GroupDateRow and -GroupDatePart & -GroupNumericRow, -GroupNumbericMin, -GroupNumbericMax and -GroupNumbericInterval
|
||||||
|
to Add-PivotTable and New-PivotTableDefinition. The date ones gather dates of the same year and/or quarter and/or month and/or day etc.
|
||||||
|
the number ones group numbers into bands, starting at Min, and going up steps specified by Interval. Added tests and help for these.
|
||||||
|
|
||||||
# What's new 5.4
|
# What's new 5.4
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,12 @@ resources:
|
|||||||
queue:
|
queue:
|
||||||
name: Hosted VS2017
|
name: Hosted VS2017
|
||||||
steps:
|
steps:
|
||||||
- powershell: '.\DoTests.ps1'
|
- powershell: ./ '.\DoTests.ps1'
|
||||||
displayName: 'PowerShell Script'
|
displayName: 'PowerShell Script'
|
||||||
|
|
||||||
|
- task: ArchiveFiles@2
|
||||||
|
displayName: 'Archive $(Build.BinariesDirectory)'
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
paths:
|
paths:
|
||||||
exclude:
|
exclude:
|
||||||
|
|||||||
Reference in New Issue
Block a user