Add explicit interface checking to 'make check'

This commit is contained in:
Taryn Hill
2015-12-30 08:03:39 -06:00
parent 2e861c6d65
commit e3229f4cd8
2 changed files with 5 additions and 0 deletions

View File

@@ -227,6 +227,9 @@ check: utility mods
@echo @echo
@echo "Checking for code style violations in OpenRA.Test..." @echo "Checking for code style violations in OpenRA.Test..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Test @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Test
@echo
@echo "Checking for explicit interface violations..."
@mono --debug OpenRA.Utility.exe all --check-explicit-interfaces
NUNIT_CONSOLE := $(shell test -f thirdparty/download/nunit3-console.exe && echo mono thirdparty/download/nunit3-console.exe || \ NUNIT_CONSOLE := $(shell test -f thirdparty/download/nunit3-console.exe && echo mono thirdparty/download/nunit3-console.exe || \
which nunit3-console 2>/dev/null || which nunit2-console 2>/dev/null || which nunit-console 2>/dev/null) which nunit3-console 2>/dev/null || which nunit2-console 2>/dev/null || which nunit-console 2>/dev/null)

View File

@@ -174,6 +174,8 @@ elseif ($command -eq "check")
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Utility ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Utility
echo "Checking for code style violations in OpenRA.Test..." echo "Checking for code style violations in OpenRA.Test..."
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Test ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Test
echo "Checking for explicit interface violations..."
./OpenRA.Utility.exe all --check-explicit-interfaces
} }
else else
{ {