mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
c4256d8674
* AZP Bootstrap (cherry picked from commit33126b7267
) * AZP: Correct Cloud jobs (cherry picked from commit 2fea31b292377e17ba5447dcb79c4b753a6fad58) * Fix AZP CI (#1508) * Fix 2.9/2.10 cloud * Fix splunk callback tests. * ansible_virtualization_type on AZP can be one of container/containerd instead of docker for dockerized tests. * Disable nomad tests. * Work around AZP bugs. (cherry picked from commitdd55c3c3bb
) * Run tests on all groups. * Reduce 2.9 coverage to decrease large number of jobs. * Try to fix test. * Revert "Try to fix test." This reverts commit23f51451c6
. * Other target selection for 2.9. Co-authored-by: Felix Fontein <felix@fontein.de>
45 lines
1.9 KiB
YAML
45 lines
1.9 KiB
YAML
# This template uses the provided list of jobs to create test one or more test jobs.
|
|
# It can be used directly if needed, or through the matrix template.
|
|
|
|
parameters:
|
|
# A required list of dictionaries, one per test job.
|
|
# Each item in the list must contain a "job" and "name" key.
|
|
- name: jobs
|
|
type: object
|
|
|
|
jobs:
|
|
- ${{ each job in parameters.jobs }}:
|
|
- job: test_${{ replace(replace(replace(job.test, '/', '_'), '.', '_'), '-', '_') }}
|
|
displayName: ${{ job.name }}
|
|
container: default
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: $(fetchDepth)
|
|
path: $(checkoutPath)
|
|
- bash: .azure-pipelines/scripts/run-tests.sh "$(entryPoint)" "${{ job.test }}" "$(coverageBranches)"
|
|
displayName: Run Tests
|
|
- bash: .azure-pipelines/scripts/process-results.sh
|
|
condition: succeededOrFailed()
|
|
displayName: Process Results
|
|
- bash: .azure-pipelines/scripts/aggregate-coverage.sh "$(Agent.TempDirectory)"
|
|
condition: eq(variables.haveCoverageData, 'true')
|
|
displayName: Aggregate Coverage Data
|
|
- task: PublishTestResults@2
|
|
condition: eq(variables.haveTestResults, 'true')
|
|
inputs:
|
|
testResultsFiles: "$(outputPath)/junit/*.xml"
|
|
displayName: Publish Test Results
|
|
- task: PublishPipelineArtifact@1
|
|
condition: eq(variables.haveBotResults, 'true')
|
|
displayName: Publish Bot Results
|
|
inputs:
|
|
targetPath: "$(outputPath)/bot/"
|
|
artifactName: "Bot $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
|
|
- task: PublishPipelineArtifact@1
|
|
condition: eq(variables.haveCoverageData, 'true')
|
|
displayName: Publish Coverage Data
|
|
inputs:
|
|
targetPath: "$(Agent.TempDirectory)/coverage/"
|
|
artifactName: "Coverage $(System.JobAttempt) $(System.StageDisplayName) $(System.JobDisplayName)"
|