Add explicit interface checking to 'make check'
This commit is contained in:
3
Makefile
3
Makefile
@@ -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)
|
||||||
|
|||||||
2
make.ps1
2
make.ps1
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user