Skip to content

Commit ac3cb0f

Browse files
committed
Move to clang-format-6.0 and cleanup config
As we are moving to clang-6.0 in other parts of the Travis configuration we might as well use clang-format-6.0 in line with this. Also clean up the script that used to ack around paths by just specifying the binary to use on the command-line.
1 parent bf5cef8 commit ac3cb0f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,14 @@ jobs:
88
env: NAME="clang-format"
99
addons:
1010
apt:
11+
sources:
12+
- llvm-toolchain-trusty-6.0
1113
packages:
12-
- clang-format-3.8
14+
- clang-format-6.0
1315
install:
1416
script: |
15-
# Apparently update-alternatives doesn't work in Travis containers
16-
mkdir -p priority-symlinks
17-
ln -s /usr/bin/clang-format-3.8 priority-symlinks/clang-format
18-
export PATH=${PWD}/priority-symlinks:${PATH}
19-
20-
# Now we can do the formatting pass
2117
clang-format --version
22-
git-clang-format-3.8 "${TRAVIS_BRANCH}"
18+
git-clang-format-6.0 --binary clang-format-6.0 "${TRAVIS_BRANCH}"
2319
git diff > formatted.diff
2420
if [[ -s formatted.diff ]] ; then
2521
echo 'Formatting error! The following diff shows the required changes'

0 commit comments

Comments
 (0)