Fix clang format docker

This commit is contained in:
Noah Eisen 2018-01-16 17:22:24 -08:00
parent 1adad72979
commit d268793ff3
2 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,8 @@
RUN ./bazel-0.4.4-installer-linux-x86_64.sh
<%include file="../../clang5.include"/>
RUN ln -s /clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin/clang-format /usr/local/bin/clang-format
ENV CLANG_FORMAT=clang-format
<%include file="../../run_tests_addons.include"/>
# Define the default command.

View File

@ -109,6 +109,8 @@ RUN apt-get update && apt-get -y install wget xz-utils
RUN wget http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
RUN tar xf clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
RUN ln -s /clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin/clang-format /usr/local/bin/clang-format
ENV CLANG_FORMAT=clang-format
# Prepare ccache
RUN ln -s /usr/bin/ccache /usr/local/bin/gcc
RUN ln -s /usr/bin/ccache /usr/local/bin/g++