Adds more unit tests (#133)

This commit is contained in:
Kamron Batman 2020-05-08 20:32:59 -07:00 committed by GitHub
parent e138706536
commit 8278694105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 1406 additions and 996 deletions

View file

@ -2,7 +2,6 @@ dotnet clean
:<<"::SHELLSCRIPT"
@ECHO OFF
GOTO :CMDSCRIPT
::SHELLSCRIPT
Tools/build-native-libraries.cmd
@ -15,33 +14,34 @@ fi
if [[ $1 ]]
then
o="-r $1-x64"
r="-r $1-x64"
else
if [[ $(uname) = "Darwin" ]]
then
o="-r osx-x64"
r="-r osx-x64"
else
o="-r linux-x64"
r="-r linux-x64"
fi
fi
echo dotnet publish ${c} ${o} --self-contained=false
dotnet publish ${c} ${o} --self-contained=false
dotnet publish Projects/Server/Server.csproj ${c} ${r} --self-contained=false -o Distribution
dotnet publish Projects/Scripts/Scripts.csproj ${c} ${r} --self-contained=false -o Distribution/Assemblies
exit $?
:CMDSCRIPT
Tools\build-native-libraries.cmd
CALL Tools\build-native-libraries.cmd
IF "%~2" == "" (
SET c = "-c Release"
SET c =-c Release
) ELSE (
SET c = "-c %~2"
SET c =-c %~2
)
IF "%~1" != "" (
SET o = "-r %~1-x64"
IF NOT "%~1" == "" (
SET r =-r %~1-x64
) ELSE (
SET o = "-r win-x64"
SET r =-r win-x64
)
dotnet publish %c% %o% --self-contained=false
dotnet publish Projects\Server\Server.csproj %c% %r% --self-contained=false -o Distribution
dotnet publish Projects\Scripts\Scripts.csproj %c% %r% --self-contained=false -o Distribution\Assemblies