Put back DoTests and yml file. Updated readme for pivot groups

This commit is contained in:
jhoneill
2018-12-06 21:38:13 +00:00
parent bef2f29651
commit 72e44da219
3 changed files with 10 additions and 7 deletions

View File

@@ -7,21 +7,18 @@ param(
##
$PSVersionTable.PSVersion
$env:BUILD_ARTIFACTSTAGINGDIRECTORY
$VerbosePreference = "Continue"
## Create the zip before the tests run
## Otherwise the EPPlus.dll is in use after the Pester run
$ModuleVersion = (Get-Content -Raw .\ImportExcel.psd1) | Invoke-Expression | ForEach-Object ModuleVersion
if (!$DontCreateZip) {
if ($null -eq $env:BUILD_ARTIFACTSTAGINGDIRECTORY) {$env:BUILD_ARTIFACTSTAGINGDIRECTORY = '.'}
$dest = Join-Path -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY -ChildPath ("ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss"))
Compress-Archive -Path . -DestinationPath .\$dest -Verbose
$dest = "ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss")
Compress-Archive -Path . -DestinationPath .\$dest
}
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

View File

@@ -55,6 +55,9 @@ Install-Module ImportExcel
# What's new
- 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

View File

@@ -3,9 +3,12 @@ resources:
queue:
name: Hosted VS2017
steps:
- powershell: '.\DoTests.ps1'
- powershell: ./ '.\DoTests.ps1'
displayName: 'PowerShell Script'
- task: ArchiveFiles@2
displayName: 'Archive $(Build.BinariesDirectory)'
trigger:
paths:
exclude: