Skip to content
Snippets Groups Projects
Commit 98c12b33 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge branch 'clang-format-12.0.1' into 'master'

[ci] Updated clang-format to 12.0.1.

See merge request ogs/ogs!3731
parents 10b1d1a9 7f0fe87c
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,12 @@ ENV TZ=Europe/Berlin ...@@ -4,7 +4,12 @@ ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends git gcc g++ python3-pip clang-format-12 \ && apt-get install -y --no-install-recommends git gcc g++ python3-pip wget xz-utils \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/local/bin/clang-format clang-format /usr/bin/clang-format-12 10
RUN pip install pre-commit==2.13.0 RUN pip install pre-commit==2.13.0
ARG clang_version=12.0.1
RUN wget https://github.com/llvm/llvm-project/releases/download/llvmorg-${clang_version}/clang+llvm-${clang_version}-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
&& tar xf clang+llvm-${clang_version}-x86_64-linux-gnu-ubuntu-16.04.tar.xz \
&& rm clang+llvm-${clang_version}-x86_64-linux-gnu-ubuntu-16.04.tar.xz
ENV PATH="/clang+llvm-${clang_version}-x86_64-linux-gnu-ubuntu-/bin:${PATH}"
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