Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build/Run Scripts from Parkstation #6

Merged
merged 5 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Scripts/bat/!README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
buildAllDebug
Builds all projects with debug configuration
buildAllRelease
Builds all projects with release configuration

The debug vs release build is simply what people develop in vs the actual server.
The release build contains various optimizations, while the debug build contains debugging tools.
If you're mapping, use the release build as it will run smoother with less crashes.
DEATHB4DEFEAT marked this conversation as resolved.
Show resolved Hide resolved


runQuickAll
Runs the client and server without building
runQuickClient
Runs the client without building
runQuickServer
Runs the server without building

runTestsIntegration
Runs the integration tests, makes sure various C# systems work as intended
runTestsYAML
Runs the YAML linter and finds issues with the YAML files that you probably wouldn't otherwise
8 changes: 8 additions & 0 deletions Scripts/bat/buildAllDebug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
cd ../../

call python RUN_THIS.py
call git submodule update --init --recursive
call dotnet build -c Debug

pause
8 changes: 8 additions & 0 deletions Scripts/bat/buildAllRelease.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@echo off
cd ../../

call python RUN_THIS.py
call git submodule update --init --recursive
call dotnet build -c Release

pause
6 changes: 6 additions & 0 deletions Scripts/bat/runQuickAll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off

start runQuickServer.bat %*
start runQuickClient.bat %*

exit
6 changes: 6 additions & 0 deletions Scripts/bat/runQuickClient.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
cd ../../

call dotnet run --project Content.Client --no-build %*

pause
6 changes: 6 additions & 0 deletions Scripts/bat/runQuickServer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
cd ../../

call dotnet run --project Content.Server --no-build %*

pause
8 changes: 8 additions & 0 deletions Scripts/bat/runTests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd ..\..\

mkdir Scripts\logs

del Scripts\logs\Content.Tests.log
dotnet test Content.Tests/Content.Tests.csproj -c DebugOpt -- NUnit.ConsoleOut=0 > Scripts\logs\Content.Tests.log

pause
8 changes: 8 additions & 0 deletions Scripts/bat/runTestsIntegration.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd ..\..\

mkdir Scripts\logs

del Scripts\logs\Content.IntegrationTests.log
dotnet test Content.IntegrationTests/Content.IntegrationTests.csproj -c DebugOpt -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed > Scripts\logs\Content.IntegrationTests.log

pause
8 changes: 8 additions & 0 deletions Scripts/bat/runTestsYAML.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd ..\..\

mkdir Scripts\logs

del Scripts\logs\Content.YAMLLinter.log
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj -c DebugOpt -- NUnit.ConsoleOut=0 > Scripts\logs\Content.YAMLLinter.log

pause
21 changes: 21 additions & 0 deletions Scripts/sh/!README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
buildAllDebug
Builds all projects with debug configuration
buildAllRelease
Builds all projects with release configuration

The debug vs release build is simply what people develop in vs the actual server.
The release build contains various optimizations, while the debug build contains debugging tools.
If you're mapping, use the release build as it will run smoother with less crashes.


runQuickAll
Runs the client and server without building
runQuickClient
Runs the client without building
runQuickServer
Runs the server without building

runTestsIntegration
Runs the integration tests, makes sure various C# systems work as intended
runTestsYAML
Runs the YAML linter and finds issues with the YAML files that you probably wouldn't otherwise
12 changes: 12 additions & 0 deletions Scripts/sh/buildAllDebug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cd ../../

python RUN_THIS.py
git submodule update --init --recursive
dotnet build -c Debug
12 changes: 12 additions & 0 deletions Scripts/sh/buildAllRelease.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cd ../../

python RUN_THIS.py
git submodule update --init --recursive
dotnet build -c Release
11 changes: 11 additions & 0 deletions Scripts/sh/runQuickAll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

sh -e runQuickServer.sh &
sh -e runQuickClient.sh

exit
9 changes: 9 additions & 0 deletions Scripts/sh/runQuickClient.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cd ../../
dotnet run --project Content.Client --no-build
9 changes: 9 additions & 0 deletions Scripts/sh/runQuickServer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cd ../../
dotnet run --project Content.Server --no-build
9 changes: 9 additions & 0 deletions Scripts/sh/runTests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cd ../../

mkdir Scripts/logs

rm Scripts/logs/Content.Tests.log
dotnet test Content.Tests/Content.Tests.csproj -c DebugOpt -- NUnit.ConsoleOut=0 > Scripts/logs/Content.Tests.log

echo "Tests complete. Press enter to continue."
read
9 changes: 9 additions & 0 deletions Scripts/sh/runTestsIntegration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cd ../../

mkdir Scripts/logs

rm Scripts/logs/Content.IntegrationTests.log
dotnet test Content.IntegrationTests/Content.IntegrationTests.csproj -c DebugOpt -- NUnit.ConsoleOut=0 NUnit.MapWarningTo=Failed > Scripts/logs/Content.IntegrationTests.log

echo "Tests complete. Press enter to continue."
read
9 changes: 9 additions & 0 deletions Scripts/sh/runTestsYAML.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cd ../../

mkdir Scripts/logs

rm Scripts/logs/Content.YAMLLinter.log
dotnet run --project Content.YAMLLinter/Content.YAMLLinter.csproj -c DebugOpt -- NUnit.ConsoleOut=0 > Scripts/logs/Content.YAMLLinter.log

echo "Tests complete. Press enter to continue."
read