diff --git a/DoTests.ps1 b/DoTests.ps1 index d17731a..ce81979 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -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 diff --git a/README.md b/README.md index 10fbc5d..976498e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dc2278b..4665bdd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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: