mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +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
|
||||
$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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user