diff options
author | terminaldweller <thabogre@gmail.com> | 2021-07-14 05:01:33 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-07-14 05:01:33 +0000 |
commit | 3d8a89bad9ccc48e7877fa1c4219a1064666b7c9 (patch) | |
tree | bb904c6ec6f18876a8e0af0a8c7012c5e7e6deab /docker | |
parent | addes a macro for ast_type_traits. starting from 12 it had a namespace change (diff) | |
download | cgrep-3d8a89bad9ccc48e7877fa1c4219a1064666b7c9.tar.gz cgrep-3d8a89bad9ccc48e7877fa1c4219a1064666b7c9.zip |
added llvm 12 and 13 to travis. added some dockerfiles i used for building/testing against different llvm versions.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/11/Dockerfile | 17 | ||||
-rw-r--r-- | docker/12/Dockerfile | 17 | ||||
-rw-r--r-- | docker/13/Dockerfile | 17 |
3 files changed, 51 insertions, 0 deletions
diff --git a/docker/11/Dockerfile b/docker/11/Dockerfile new file mode 100644 index 0000000..edef053 --- /dev/null +++ b/docker/11/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:bullseye-slim + +RUN apt update && apt upgrade -y +RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2 +RUN wget apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 11 +RUN apt install -y llvm-11-dev libclang-common-11-dev libclang-11-dev clang-11 + +RUN git clone https://github.com/bloodstalker/cgrep \ + && cd cgrep \ + && git submodule init \ + && git submodule update \ + && mkdir build \ + && cd build \ + && cmake ../ -DLLVM_CONF=llvm-config-11 -DCMAKE_CXX_COMPILER=clang++-11 -DUSE_MONOLITH_LIBTOOLING=OFF\ + && make + +RUN rm -rf /var/apt/cache diff --git a/docker/12/Dockerfile b/docker/12/Dockerfile new file mode 100644 index 0000000..bba51c0 --- /dev/null +++ b/docker/12/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:bullseye-slim + +RUN apt update && apt upgrade -y +RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2 +RUN wget apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 12 +RUN apt install -y llvm-12-dev libclang-common-12-dev libclang-12-dev clang-12 + +RUN git clone https://github.com/bloodstalker/cgrep \ + && cd cgrep \ + && git submodule init \ + && git submodule update \ + && mkdir build \ + && cd build \ + && cmake ../ -DLLVM_CONF=llvm-config-12 -DCMAKE_CXX_COMPILER=clang++-12 -DUSE_MONOLITH_LIBTOOLING=OFF\ + && make + +RUN rm -rf /var/apt/cache diff --git a/docker/13/Dockerfile b/docker/13/Dockerfile new file mode 100644 index 0000000..0906e2f --- /dev/null +++ b/docker/13/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:bullseye-slim + +RUN apt update && apt upgrade -y +RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2 +RUN wget apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 13 +RUN apt install -y llvm-13-dev libclang-common-13-dev libclang-13-dev clang-13 + +RUN git clone https://github.com/bloodstalker/cgrep \ + && cd cgrep \ + && git submodule init \ + && git submodule update \ + && mkdir build \ + && cd build \ + && cmake ../ -DLLVM_CONF=llvm-config-13 -DCMAKE_CXX_COMPILER=clang++-13 -DUSE_MONOLITH_LIBTOOLING=OFF\ + && make + +RUN rm -rf /var/apt/cache |