Skip to content

Commit

Permalink
Add script to test pre-release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sandermvanvliet committed Jul 6, 2023
1 parent 94dc531 commit a34c8f1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions local-pre-release-debug.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$RID="win-x64"

dotnet restore -r $RID

cp src/RoadCaptain.App.Runner/appsettings.routerepositories.release.json src/RoadCaptain.App.Runner/appsettings.routerepositories.json
cp src/RoadCaptain.App.RouteBuilder/appsettings.routerepositories.release.json src/RoadCaptain.App.RouteBuilder/appsettings.routerepositories.json

dotnet test --verbosity minimal -c Debug -r $RID -p:RuntimeIdentifier=$RID -p:RuntimeIdentifiers=$RID

dotnet publish --self-contained -c Debug -r $RID -p:RuntimeIdentifiers=$RID -p:PreRelease=True src\RoadCaptain.App.Runner\RoadCaptain.App.Runner.csproj

dotnet publish --self-contained -c Debug -r $RID -p:RuntimeIdentifiers=$RID -p:PreRelease=True src\RoadCaptain.App.RouteBuilder\RoadCaptain.App.RouteBuilder.csproj

dotnet run --project .\packaging\RoadCaptain.WixComponentFileGenerator\RoadCaptain.WixComponentFileGenerator.csproj src\RoadCaptain.App.Runner\bin\Debug\net6.0-windows\$RID\publish src\RoadCaptain.App.RouteBuilder\bin\Debug\net6.0-windows\$RID\publish .\packaging\RoadCaptain.Installer\Components.wxi

msbuild .\packaging\RoadCaptain.Installer\RoadCaptain.Installer.wixproj -property:Configuration=Debug -property:RunnerTargetDir=C:\git\RoadCaptain\src\RoadCaptain.App.Runner\bin\Debug\net6.0-windows\$RID\publish\ -property:RouteBuilderTargetDir=C:\git\RoadCaptain\src\RoadCaptain.App.RouteBuilder\bin\Debug\net6.0-windows\$RID\publish\ -property:PreRelease=True

0 comments on commit a34c8f1

Please sign in to comment.