]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-perf-pull-requests: install clang-10 on debian/ubuntu
authorKefu Chai <kchai@redhat.com>
Sat, 22 Aug 2020 03:14:04 +0000 (11:14 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 22 Aug 2020 03:22:06 +0000 (11:22 +0800)
and always install clang for both classic and crimson job

so we can see the warnings spit by clang when running classic perf tests

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-perf-pull-requests/config/definitions/ceph-perf-pull-requests.yml

index 3b23072cb92b2040b4a81423a52bec21b0034ff3..9bcbe065e1757df1d9fa46ff2e5bff931d6b1ff6 100644 (file)
       - shell: |
           cd ${{WORKSPACE}}/cbt
           source /etc/os-release || ID=ubuntu
-          if test {osd-flavor} = "crimson" ; then
-              extra_pkgs=clang
-          fi
           case $ID in
           debian|ubuntu)
-              sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y python3-yaml python3-lxml python3-prettytable ${{extra_pkgs}}
+              sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y python3-yaml python3-lxml python3-prettytable clang-10
               ;;
           centos|rhel)
               sudo dnf module disable -y llvm-toolset
               sudo dnf copr enable -y tchaikov/llvm-toolset-10 centos-stream-x86_64
-              sudo yum install -y python3-pyyaml python3-lxml python3-prettytable ${{extra_pkgs}}
+              sudo yum install -y python3-pyyaml python3-lxml python3-prettytable clang
               gcc_toolset_ver=9
               # so clang is able to find gcc-toolset-${{gcc_toolset_ver}} which is listed as a
               # BuildRequires in ceph.spec.in, and it is installed by `run-make.sh`.
                           /usr/lib/gcc/x86_64-redhat-linux/${{gcc_toolset_ver}}
               ;;
           fedora)
-              sudo yum install -y python3-pyyaml python3-lxml python3-prettytable ${{extra_pkgs}}
+              sudo yum install -y python3-pyyaml python3-lxml python3-prettytable clang
               ;;
           *)
               echo "unknown distro: $ID"