From 3f0a361ab5de31b41fd06bcc1c727d25df9f571c Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 27 Nov 2019 21:13:43 -0800 Subject: Added format validation script stub on Mac --- BuildTools/FormatValidation/validate_format_mac.sh | 8 ++++++++ BuildTools/Scripts/travis/validate_format.sh | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100755 BuildTools/FormatValidation/validate_format_mac.sh create mode 100755 BuildTools/Scripts/travis/validate_format.sh (limited to 'BuildTools') diff --git a/BuildTools/FormatValidation/validate_format_mac.sh b/BuildTools/FormatValidation/validate_format_mac.sh new file mode 100755 index 00000000..754d8fd1 --- /dev/null +++ b/BuildTools/FormatValidation/validate_format_mac.sh @@ -0,0 +1,8 @@ +#!/bin/bash +#python clang-format-validate.py -r \ +# --exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions.h \ +# --exclude ../../Graphics/HLSL2GLSLConverterLib/include/GLSLDefinitions_inc.h \ +# --exclude ../../Graphics/GraphicsEngineVulkan/shaders/* \ +# ../../Common ../../Graphics ../../Platforms ../../Primitives +echo "Format validation is not yet enabled for DiligentCore module on MacOS" + diff --git a/BuildTools/Scripts/travis/validate_format.sh b/BuildTools/Scripts/travis/validate_format.sh new file mode 100755 index 00000000..39f40554 --- /dev/null +++ b/BuildTools/Scripts/travis/validate_format.sh @@ -0,0 +1,10 @@ +# The script must be run from FormatValidatio folder + +if [ "$TRAVIS_OS_NAME" = "osx" ]; then + . ./validate_format_mac.sh +fi + +if [ "$TRAVIS_OS_NAME" = "linux" ]; then + . ./validate_format_linux.sh +fi + -- cgit v1.2.3