diff --git a/Jenkinsfile b/Jenkinsfile index 64853a23ff6e8c109099834053961e60679c7f66..e8cf8e8c859a5999ebcfea1bc4fba82039412200 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -447,7 +447,7 @@ pipeline { cmakeOptions = "-DBUILD_SHARED_LIBS=${build_shared} " + '-DBUILD_TESTING=OFF ' + - '-DCMAKE_CXX_CLANG_TIDY=clang-tidy-5.0 ' + '-DCMAKE_CXX_CLANG_TIDY=clang-tidy-7 ' } build { log = 'build.log' } } diff --git a/scripts/docker/Dockerfile.clang.full b/scripts/docker/Dockerfile.clang.full index cbd0a78e6b7d4158c0a862d95aa0873d4f6d6db1..ad86bb7ce4455fa617ce5d1055e8c828b8e9f452 100644 --- a/scripts/docker/Dockerfile.clang.full +++ b/scripts/docker/Dockerfile.clang.full @@ -1,6 +1,6 @@ -FROM ubuntu:17.10 +FROM ubuntu:18.04 -# Generated with https://github.com/ufz/ogs-container-maker/commit/9f130d9 +# Generated with https://github.com/ufz/ogs-container-maker/commit/7790259 RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ @@ -12,15 +12,15 @@ RUN apt-get update -y && \ # LLVM compiler RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - clang-5.0 && \ + clang-7 && \ rm -rf /var/lib/apt/lists/* -RUN update-alternatives --install /usr/bin/clang clang $(which clang-5.0) 30 && \ - update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-5.0) 30 +RUN update-alternatives --install /usr/bin/clang clang $(which clang-7) 30 && \ + update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-7) 30 RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - clang-tidy-5.0 \ - clang-format-5.0 && \ + clang-tidy-7 \ + clang-format-7 && \ rm -rf /var/lib/apt/lists/* # OGS base building block @@ -46,7 +46,8 @@ RUN apt-get update -y && \ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://cmake.org/files/v3.13/cmake-3.13.4-Linux-x86_64.sh && \ /bin/sh /var/tmp/cmake-3.13.4-Linux-x86_64.sh --prefix=/usr/local --skip-license && \ rm -rf /var/tmp/cmake-3.13.4-Linux-x86_64.sh -RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash +RUN apt-get update && \ + curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends software-properties-common && \ apt-add-repository ppa:git-core/ppa -y && \ @@ -76,19 +77,19 @@ LABEL org.opengeosys.pm=conan \ org.opengeosys.pm.conan.user_home=/opt/conan \ org.opengeosys.pm.conan.version=1.12.2 -# Include-what-you-use for clang version 5.0 +# Include-what-you-use for clang version 7 RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ libncurses5-dev \ zlib1g-dev \ - llvm-5.0-dev \ - libclang-5.0-dev && \ + llvm-7-dev \ + libclang-7-dev && \ rm -rf /var/lib/apt/lists/* -RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://github.com/include-what-you-use/include-what-you-use/archive/clang_5.0.tar.gz && \ - mkdir -p /var/tmp && tar -x -f /var/tmp/clang_5.0.tar.gz -C /var/tmp -z && \ - mkdir -p /var/tmp/build && cd /var/tmp/build && cmake -DCMAKE_INSTALL_PREFIX=/usr/local/iwyy -DIWYU_LLVM_ROOT_PATH=/usr/lib/llvm-5.0 /var/tmp/include-what-you-use-clang_5.0 && \ +RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://github.com/include-what-you-use/include-what-you-use/archive/clang_7.0.tar.gz && \ + mkdir -p /var/tmp && tar -x -f /var/tmp/clang_7.0.tar.gz -C /var/tmp -z && \ + mkdir -p /var/tmp/build && cd /var/tmp/build && cmake -DCMAKE_INSTALL_PREFIX=/usr/local/iwyy -DIWYU_LLVM_ROOT_PATH=/usr/lib/llvm-7 /var/tmp/include-what-you-use-clang_7.0 && \ cmake --build /var/tmp/build --target install -- -j$(nproc) && \ - rm -rf /var/tmp/clang_5.0.tar.gz /var/tmp/build /var/tmp/include-what-you-use-clang_5.0 + rm -rf /var/tmp/clang_7.0.tar.gz /var/tmp/build /var/tmp/include-what-you-use-clang_7.0 ENV PATH=/usr/local/iwyy/bin:$PATH # Package manager Conan building block diff --git a/scripts/docker/Dockerfile.clang.minimal b/scripts/docker/Dockerfile.clang.minimal index 90fe6ad881481529b351bb237888b5174ddfeccc..dc26c2e555b3887fe5972ebd65b6f0b0bb499259 100644 --- a/scripts/docker/Dockerfile.clang.minimal +++ b/scripts/docker/Dockerfile.clang.minimal @@ -1,6 +1,6 @@ -FROM ubuntu:17.10 +FROM ubuntu:18.04 -# Generated with https://github.com/ufz/ogs-container-maker/commit/9f130d9 +# Generated with https://github.com/ufz/ogs-container-maker/commit/7790259 RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ @@ -12,15 +12,15 @@ RUN apt-get update -y && \ # LLVM compiler RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - clang-5.0 && \ + clang-7 && \ rm -rf /var/lib/apt/lists/* -RUN update-alternatives --install /usr/bin/clang clang $(which clang-5.0) 30 && \ - update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-5.0) 30 +RUN update-alternatives --install /usr/bin/clang clang $(which clang-7) 30 && \ + update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-7) 30 RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - clang-tidy-5.0 \ - clang-format-5.0 && \ + clang-tidy-7 \ + clang-format-7 && \ rm -rf /var/lib/apt/lists/* # OGS base building block @@ -46,7 +46,8 @@ RUN apt-get update -y && \ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://cmake.org/files/v3.13/cmake-3.13.4-Linux-x86_64.sh && \ /bin/sh /var/tmp/cmake-3.13.4-Linux-x86_64.sh --prefix=/usr/local --skip-license && \ rm -rf /var/tmp/cmake-3.13.4-Linux-x86_64.sh -RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash +RUN apt-get update && \ + curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash RUN apt-get update -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends software-properties-common && \ apt-add-repository ppa:git-core/ppa -y && \