Skip to content

Commit

Permalink
Change XHarness versioning to match branches (#1021)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
  • Loading branch information
premun and akoeplinger authored May 3, 2023
1 parent 72283e9 commit aa434d0
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ To install the latest version of the tool run (in bash):
dotnet tool install Microsoft.DotNet.XHarness.CLI \
--global \
--add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json \
--version "1.0.0-prerelease*"
--version "8.0.0-prerelease*"
```

Or run (in PowerShell):
Expand All @@ -55,7 +55,7 @@ Or run (in PowerShell):
dotnet tool install Microsoft.DotNet.XHarness.CLI `
--global `
--add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json `
--version "1.0.0-prerelease*"
--version "8.0.0-prerelease*"
```

You can get a specific version from [the dotnet-eng feed](https://dev.azure.com/dnceng/public/_packaging?_a=package&feed=dotnet-eng&view=versions&package=Microsoft.DotNet.XHarness.CLI&protocolType=NuGet) where it is published.
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ stages:
displayName: Build and run tests
condition: succeeded()

- publish: $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping/Microsoft.DotNet.XHarness.CLI.1.0.0-ci.nupkg
- publish: $(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping/Microsoft.DotNet.XHarness.CLI.8.0.0-ci.nupkg
artifact: Microsoft.DotNet.XHarness.CLI.$(_BuildConfig)
displayName: Publish XHarness CLI for Helix Testing
condition: and(succeeded(), eq(variables['_BuildConfig'], 'Debug'))
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionPrefix>8.0.0</VersionPrefix>
<PreReleaseVersionLabel>prerelease</PreReleaseVersionLabel>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions tests/integration-tests/Helix.SDK.configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<DotNetCliVersion>8.0.100</DotNetCliVersion>

<!-- Pick up the nupkg from this repo for testing purposes -->
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-ci</MicrosoftDotNetXHarnessCLIVersion>
<MicrosoftDotNetXHarnessCLIVersion>$(VersionPrefix)-ci</MicrosoftDotNetXHarnessCLIVersion>

<!-- Upload the diagnostics.json with other results -->
<IsPosixShell Condition=" '$(IsPosixShell)' != 'false' ">true</IsPosixShell>
Expand All @@ -28,7 +28,7 @@
<!-- For non-ci local runs -->
<PropertyGroup Condition=" '$(AGENT_JOBNAME)' == '' ">
<EnableAzurePipelinesReporter>false</EnableAzurePipelinesReporter>
<MicrosoftDotNetXHarnessCLIVersion>1.0.0-dev</MicrosoftDotNetXHarnessCLIVersion>
<MicrosoftDotNetXHarnessCLIVersion>$(VersionPrefix)-dev</MicrosoftDotNetXHarnessCLIVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion tools/Install-XHarness.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ param (

$ErrorActionPreference = "Stop"

$xharness_version = "1.0.0-prerelease.$Version"
$xharness_version = "8.0.0-prerelease.$Version"

# Install .NET
Write-Host "Getting dotnet-install.ps1.." -ForegroundColor Cyan
Expand Down
2 changes: 1 addition & 1 deletion tools/install-xharness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ while [[ $# -gt 0 ]]; do
shift
done

xharness_version="1.0.0-prerelease.$version"
xharness_version="8.0.0-prerelease.$version"

here=$(pwd)
dotnet_install="$here/dotnet-install.sh"
Expand Down
2 changes: 1 addition & 1 deletion tools/run-e2e-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (-not(Test-Path -Path $TestProject -PathType Leaf)) {
if ($SkipBuild) {
Write-Host -ForegroundColor Cyan "> Skipping build"
} else {
Write-Host -ForegroundColor Cyan "> Building Microsoft.DotNet.XHarness.CLI.1.0.0-dev.nupkg"
Write-Host -ForegroundColor Cyan "> Building Microsoft.DotNet.XHarness.CLI NuGet package"

Remove-Item -Recurse -ErrorAction SilentlyContinue "$repoRoot\artifacts\tmp\Debug\Microsoft.DotNet.XHarness.CLI"
Remove-Item -Recurse -ErrorAction SilentlyContinue "$repoRoot\artifacts\artifacts\packages"
Expand Down
2 changes: 1 addition & 1 deletion tools/run-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ done
set -e

if [ "true" != "$skip_build" ]; then
highlight "> Building Microsoft.DotNet.XHarness.CLI.1.0.0-dev.nupkg"
highlight "> Building Microsoft.DotNet.XHarness.CLI NuGet package"
rm -rf "$repo_root/artifacts/tmp/Debug/Microsoft.DotNet.XHarness.CLI" "$repo_root/artifacts/packages"
"$repo_root/build.sh" -build -pack --projects "$repo_root/src/Microsoft.DotNet.XHarness.CLI/Microsoft.DotNet.XHarness.CLI.csproj"
else
Expand Down

0 comments on commit aa434d0

Please sign in to comment.