Skip to content
Snippets Groups Projects
Commit 0edb7269 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix clang-format version used by travis

parent edc86b18
No related branches found
No related tags found
1 merge request!8Integrate groupless
......@@ -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:
......
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment