From e7a64ab8b0dbf6c18069b5b700ea9d21612ccd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 25 Dec 2014 10:20:08 +0100 Subject: [PATCH] automatically check for code style violations --- .travis.yml | 1 + Makefile | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index c8489f949c..559bc7c395 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ script: - make cli-dependencies - make all - make test + - make check # Automatically update the trait documentation and Lua API after_success: diff --git a/Makefile b/Makefile index d8be6e0890..42885e1768 100644 --- a/Makefile +++ b/Makefile @@ -178,6 +178,14 @@ test: @echo "Testing Tiberian Sun mod MiniYAML..." @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 tsbuild_SRCS := $(shell find OpenRA.TilesetBuilder/ -iname '*.cs') tsbuild_TARGET = OpenRA.TilesetBuilder.exe