Skip to content

Commit

Permalink
update build, fix sample entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
goblinfactory committed Jan 23, 2020
1 parent 50feaca commit 16f5be6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
6 changes: 4 additions & 2 deletions backlog.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Roadmap

- simple input, ReadLine()
- update dotnetcore workflow to use sln, to simplify build.

## Busy next

- Add support to fields to Form.Write #44
- simple input, ReadLine()
- create proper highspeedwriter interface that's used by the private highspeed writer, or App? so that the interface is real and not fakes.
- write Mac HighSpeedWriter and test locally

- update build to create new release and push package to nuget, and update package number when merge to master.
- need to get box writer fast enough that when pressing tab, to move between active windows, I can show the active
window by redrawing the window using a highlight theme, e.g. brightwhite double, versus single gray.
- add `mdsnippets` to build script so that it's always up to date!
Expand Down
37 changes: 26 additions & 11 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,18 +1,33 @@
$ErrorActionPreference = "Stop"

function Invoke {
param (
[scriptblock]$ScriptBlock
)
& @ScriptBlock
if ($lastexitcode -ne 0) {
Write-Host "------------------------" -foregroundcolor Red -backgroundcolor white
Write-Host "BUILD FAILED WITH ERROR!" -foregroundcolor Red -backgroundcolor white
Write-Host "------------------------" -foregroundcolor Red -backgroundcolor white
exit $lastexitcode
}
}


write-host "Konsole"
write-host "-------"

# when running on linux we cannot build ALL the projects in the sln so have to specify them 1 by 1.
# so that can limit what frameworks we are testing on.
# dotnet build src/Konsole/Konsole.csproj --configuration Release
# dotnet build src/Konsole.Tests/Konsole.Tests.csproj --configuration Release
# dotnet test src/Konsole.Tests/Konsole.Tests.csproj

dotnet build src/Konsole/Konsole.csproj --configuration Release
dotnet build src/Konsole.Tests/Konsole.Tests.csproj --configuration Release
dotnet test src/Konsole.Tests/Konsole.Tests.csproj
# when running on windows we can short circuit and build ALL the projects in the sln

write-host "------------------------"
write-host "Konsole.Platform.Windows"
write-host "------------------------"

# we can short circuit and build ALL the projects in the sln
dotnet build src/Konsole.sln --configuration Release
dotnet test src/Konsole.Tests/Konsole.Tests.csproj
invoke { dotnet build src/Konsole.sln --configuration Release }
invoke { dotnet test src/Konsole.Tests/Konsole.Tests.csproj }
invoke { dotnet test src/Konsole.Tests.Slow/Konsole.Tests.Slow.csproj }

Write-Host "---------------"
Write-Host "BUild completed"
Write-Host "---------------"
1 change: 1 addition & 0 deletions src/Konsole.Samples/Konsole.Samples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
<MSBuildWarningsAsMessages>NU1701</MSBuildWarningsAsMessages>
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages>
<StartupObject>Konsole.Samples.Program</StartupObject>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 16f5be6

Please sign in to comment.