Update make check for windows

This commit is contained in:
abcdefg30 2017-07-20 16:33:12 +02:00 committed by Paul Chote
parent 687ee83074
commit 00e04d1c48

View File

@ -122,14 +122,21 @@ function Check-Command
{ {
echo "Checking for explicit interface violations..." echo "Checking for explicit interface violations..."
Invoke-Expression "$utilityPath $modID --check-explicit-interfaces" Invoke-Expression "$utilityPath $modID --check-explicit-interfaces"
echo "Checking for code style violations in OpenRA.Mods.$modID..."
Invoke-Expression "$utilityPath $modID --check-code-style OpenRA.Mods.$modID"
} }
else else
{ {
UtilityNotFound UtilityNotFound
} }
if (Test-Path $styleCheckPath)
{
echo "Checking for code style violations in OpenRA.Mods.$modID..."
Invoke-Expression "$styleCheckPath OpenRA.Mods.$modID"
}
else
{
echo "OpenRA.StyleCheck.exe could not be found. Build the project first using the `"all`" command."
}
} }
function Check-Scripts-Command function Check-Scripts-Command
@ -336,6 +343,7 @@ if ($command -eq "all" -or $command -eq "clean")
} }
$utilityPath = $env:ENGINE_DIRECTORY + "/OpenRA.Utility.exe" $utilityPath = $env:ENGINE_DIRECTORY + "/OpenRA.Utility.exe"
$styleCheckPath = $env:ENGINE_DIRECTORY + "/OpenRA.StyleCheck.exe"
$execute = $command $execute = $command
if ($command.Length -gt 1) if ($command.Length -gt 1)