diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b6e298d..66ac8bf 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -34,38 +34,32 @@ jobs: displayName: 'Download ACE' condition: ne(variables.CACHE_RESTORED, 'true') - - powershell: (New-Object system.data.oledb.oledbenumerator).GetElements().SOURCES_NAME - displayName: 'Show data sources before ACE' - - powershell: Start-Process ./ace/ace.exe -Wait -ArgumentList "/quiet /passive /norestart" - displayName: 'Install ACE' + displayName: 'Install ACE for Invoke-ExcelQuery testing' - - powershell: (New-Object system.data.oledb.oledbenumerator).GetElements().SOURCES_NAME - displayName: 'Show data sources after ACE' + - powershell: 'Install-Module -Name Pester -Force -SkipPublisherCheck' + displayName: 'Update Pester' + - powershell: './CI/CI.ps1 -Test' + displayName: 'Install and Test' - # - powershell: 'Install-Module -Name Pester -Force -SkipPublisherCheck' - # displayName: 'Update Pester' - # - powershell: './CI/CI.ps1 -Test' - # displayName: 'Install and Test' + - task: PublishTestResults@2 + inputs: + testResultsFormat: 'NUnit' + testResultsFiles: '**/TestResults*.xml' + failTaskOnFailedTests: true - # - task: PublishTestResults@2 - # inputs: - # testResultsFormat: 'NUnit' - # testResultsFiles: '**/TestResults*.xml' - # failTaskOnFailedTests: true - - # - powershell: './CI/CI.ps1 -Artifact' - # displayName: 'Prepare Artifact' - # - task: PublishPipelineArtifact@1 - # inputs: - # targetPath: '$(Build.ArtifactStagingDirectory)' - # artifact: 'Modules' - # - powershell: './CI/CI.ps1 -Analyzer' - # displayName: 'Invoke ScriptAnalyzer' - # - task: PublishPipelineArtifact@1 - # inputs: - # targetPath: '$(Build.SourcesDirectory)' - # artifact: 'Source' + - powershell: './CI/CI.ps1 -Artifact' + displayName: 'Prepare Artifact' + - task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Build.ArtifactStagingDirectory)' + artifact: 'Modules' + - powershell: './CI/CI.ps1 -Analyzer' + displayName: 'Invoke ScriptAnalyzer' + - task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Build.SourcesDirectory)' + artifact: 'Source' # - job: WindowsPSCore # pool: