-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build/Run Scripts from Parkstation (#6)
# Description Adds several scripts to make building and running the projects easier outside of an IDE.
- Loading branch information
1 parent
2539714
commit 790fe7d
Showing
22 changed files
with
208 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
buildAllDebug | ||
Builds all projects with debug configuration | ||
buildAllRelease | ||
Builds all projects with release configuration | ||
buildAllTools | ||
Builds all projects with tools 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 or tools 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 | ||
|
||
runTests | ||
Runs the unit tests, makes sure various C# systems work as intended | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Tools | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@echo off | ||
|
||
start runQuickServer.bat %* | ||
start runQuickClient.bat %* | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
buildAllDebug | ||
Builds all projects with debug configuration | ||
buildAllRelease | ||
Builds all projects with release configuration | ||
buildAllTools | ||
Builds all projects with tools 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 or tools 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 | ||
|
||
runTests | ||
Runs the unit tests, makes sure various C# systems work as intended | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.