Skip to content

Commit

Permalink
update same job tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 1, 2024
1 parent e4b51ee commit c6dacac
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 198 deletions.
99 changes: 0 additions & 99 deletions .azure/same-job-output.yml

This file was deleted.

99 changes: 0 additions & 99 deletions .azure/same-job-variable.yml

This file was deleted.

62 changes: 62 additions & 0 deletions .azure/same-job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
jobs:
- job: GitVersion_v5_same_job
displayName: GitVersion v5 (same job)
strategy:
matrix:
windows-latest:
imageName: 'windows-latest'
ubuntu-latest:
imageName: 'ubuntu-latest'
macos-latest:
imageName: 'macos-latest'
pool:
vmImage: $(imageName)
steps:
- checkout: self
fetchDepth: 0

- task: gitversion/[email protected]
displayName: Install GitVersion
inputs:
versionSpec: '5.x'
includePrerelease: false

- task: gitversion/[email protected]
name: version
displayName: Use GitVersion
inputs:
useConfigFile: true
configFilePath: 'GitVersion_v5.yml'
additionalArguments: '/overrideconfig update-build-number=false'

- pwsh: |
echo "Major (major) : $(major)"
echo "Minor (minor) : $(minor)"
echo "Patch (patch) : $(patch)"
echo "SemVer (semVer) : $(semVer)"
echo "FullSemVer (fullSemVer) : $(fullSemVer)"
displayName: Display GitVersion variables (without prefix)
- pwsh: |
echo "Major (GitVersion_Major) : $(GitVersion_Major)"
echo "Minor (GitVersion_Minor) : $(GitVersion_Minor)"
echo "Patch (GitVersion_Patch) : $(GitVersion_Patch)"
echo "SemVer (GitVersion_SemVer) : $(GitVersion_SemVer)"
echo "FullSemVer (GitVersion_FullSemVer) : $(GitVersion_FullSemVer)"
displayName: Display GitVersion variables (with prefix)
- pwsh: |
echo "Major (version.major) : $(version.major)"
echo "Minor (version.minor) : $(version.minor)"
echo "Patch (version.patch) : $(version.patch)"
echo "SemVer (version.semVer) : $(version.semVer)"
echo "FullSemVer (version.fullSemVer) : $(version.fullSemVer)"
displayName: Display GitVersion outputs (step output without prefix)
- pwsh: |
echo "Major (version.GitVersion_Major) : $(version.GitVersion_Major)"
echo "Minor (version.GitVersion_Minor) : $(version.GitVersion_Minor)"
echo "Patch (version.GitVersion_Patch) : $(version.GitVersion_Patch)"
echo "SemVer (version.GitVersion_SemVer) : $(version.GitVersion_SemVer)"
echo "FullSemVer (version.GitVersion_FullSemVer) : $(version.GitVersion_FullSemVer)"
displayName: Display GitVersion outputs (step output with prefix)
Loading

0 comments on commit c6dacac

Please sign in to comment.