diff --git a/.travis.yml b/.travis.yml
index 16e53174da12fbe41f64bfd63d8ce3837021029f..0abc843a9e326743e97213fe1385afbf7f6ebc7b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,17 +3,16 @@ language: cpp
 dist: trusty
 addons:
   apt:
-    sources:
-      - llvm-toolchain-trusty-3.8
     packages:
       - clang-format-3.8
       - clang-tidy-3.8
 before_install:
-  - wget http://www.cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.tar.gz
+  - wget http://www.cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz
 install: 
-  - tar -xf cmake-3.7.1-Linux-x86_64.tar.gz
+  - tar -xf cmake-3.7.2-Linux-x86_64.tar.gz
   - export PATH="${PWD}/cmake-3.7.1-Linux-x86_64/bin:${PATH}"
   - pip install --user flake8
+  - git config --global clangformat.binary clang-format-3.8
 env:
   - BUILD_MATRIX_ENTRY=format
 script:
diff --git a/scripts/travis/run-format.sh b/scripts/travis/run-format.sh
index 51ba5e565e234f2af09a9ce1cecdbf1bf942801f..29e55e0a271136e30c16e118e4d2f2077b527676 100755
--- a/scripts/travis/run-format.sh
+++ b/scripts/travis/run-format.sh
@@ -16,7 +16,7 @@ cd ${SOURCE_DIR}
 # Check C and C++ code with clang-format
 echo "Checking formatting for commit range: ${COMMIT_RANGE}"
 DIFF="$(./scripts/developer/git/git-clang-format --diff ${COMMIT_RANGE})"
-if [ "${DIFF}" != "no modified files to format" ]
+if [ -n "${DIFF}" ]
 then
   echo "clang-format:"
   echo "  Code format checks failed."