automatically check for code style violations

This commit is contained in:
Matthias Mailänder
2014-12-25 10:20:08 +01:00
parent f4055dae53
commit e7a64ab8b0
2 changed files with 9 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ script:
- make cli-dependencies - make cli-dependencies
- make all - make all
- make test - make test
- make check
# Automatically update the trait documentation and Lua API # Automatically update the trait documentation and Lua API
after_success: after_success:

View File

@@ -178,6 +178,14 @@ test:
@echo "Testing Tiberian Sun mod MiniYAML..." @echo "Testing Tiberian Sun mod MiniYAML..."
@mono --debug OpenRA.Utility.exe ts --check-yaml @mono --debug OpenRA.Utility.exe ts --check-yaml
check:
@echo "Checking for code style violations in OpenRA.Renderer.Null..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Renderer.Null
@echo "Checking for code style violations in OpenRA.GameMonitor..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.GameMonitor
@echo "Checking for code style violations in OpenRA.Mods.Cnc..."
@mono --debug OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.Cnc
# Builds and exports tilesets from a bitmap # Builds and exports tilesets from a bitmap
tsbuild_SRCS := $(shell find OpenRA.TilesetBuilder/ -iname '*.cs') tsbuild_SRCS := $(shell find OpenRA.TilesetBuilder/ -iname '*.cs')
tsbuild_TARGET = OpenRA.TilesetBuilder.exe tsbuild_TARGET = OpenRA.TilesetBuilder.exe