Skip to content

Commit

Permalink
Add clang-format 7.0.1 to CI image (VowpalWabbit#1719)
Browse files Browse the repository at this point in the history
* Make Dockerfile build again

* Download clang-format
  • Loading branch information
palmerlao authored and Borislav Nikolov committed Mar 7, 2019
1 parent 08d4ab1 commit 9dd9231
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .pipelines/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM ubuntu:14.04 AS build

# Upgrade cmake to 3.2
RUN apt-get update
RUN apt-get install -y software-properties-common python-software-properties debconf-utils
RUN apt-get update && apt-get install -y software-properties-common python-software-properties debconf-utils
RUN add-apt-repository -y ppa:george-edison55/cmake-3.x
RUN apt-get update

Expand Down Expand Up @@ -62,3 +61,9 @@ RUN apt-get clean autoclean && \
# Set environment variables used by build
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/"

# Download clang-format 7.0
RUN wget http://releases.llvm.org/7.0.1/clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz && \
tar xvf clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-14.04.tar.xz && \
mv clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-14.04/bin/clang-format /usr/local/bin && \
rm -rf clang+llvm-7.0.1-x86_64-linux-gnu-ubuntu-14.04/

0 comments on commit 9dd9231

Please sign in to comment.