aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2018-09-25 10:05:30 -0700
committerGitHub <noreply@github.com>2018-09-25 10:05:30 -0700
commitc34ecf1ff06704562ff230c9bfaadd0b4881e335 (patch)
treeb839acff75cdfa0002dfb9686e3a7970493b5c5d /ci
parent0f7f5cd93a7cc866443eb882643acdd8b335cffd (diff)
downloadgoogletest-c34ecf1ff06704562ff230c9bfaadd0b4881e335.tar.gz
googletest-c34ecf1ff06704562ff230c9bfaadd0b4881e335.tar.bz2
googletest-c34ecf1ff06704562ff230c9bfaadd0b4881e335.zip
Revert "Add clang format check to one of the builds"
Diffstat (limited to 'ci')
-rwxr-xr-xci/test_format.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/ci/test_format.sh b/ci/test_format.sh
deleted file mode 100755
index 502c84c5..00000000
--- a/ci/test_format.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-echo "clang-format - checking Code Formatting..."
-
-if [[ "${TRAVIS_OS_NAME}" == "linux" ]] && \
- [[ "${TEST_CLANG_FORMAT}" == "yes" ]]; then
-
- RETURN=0
- CLANG_FORMAT="clang-format-3.9"
-
- which clang-format-3.9
-
- if [ ! -f ".clang-format" ]; then
- echo ".clang-format file not found!"
- exit 1
- fi
-
- FILES=`git diff master --name-only | grep -E "\.(cc|cpp|h)$"`
-
- for FILE in $FILES; do
-
- $CLANG_FORMAT $FILE | cmp $FILE >/dev/null
-
- if [ $? -ne 0 ]; then
- echo "[!] Clang-Format Found INCORRECT FORMATTING. Please re-format and re-submit. The following file failed: $FILE" >&2
- RETURN=1
- fi
-
- done
-
- exit $RETURN
-fi
-
-exit 0