You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/15 18:09:27 UTC
[incubator-nuttx] branch master updated (4bc10fe07d -> 204d143e9e)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
from 4bc10fe07d boards: tlsr: Add specific section for discribe information
new ef6036f63e tools/ci/docker/linux/Dockerfile: Install CodeChecker and requirements(clang, clang-tidy)
new 204d143e9e tools/ci/cibuild.sh: add CodeChecker requirements for `cibuild.sh`
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
tools/ci/cibuild.sh | 14 +++++++++++++-
tools/ci/docker/linux/Dockerfile | 4 ++++
2 files changed, 17 insertions(+), 1 deletion(-)
[incubator-nuttx] 02/02: tools/ci/cibuild.sh: add CodeChecker requirements for `cibuild.sh`
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 204d143e9ed7e22f59850b195b90cb26d1913efa
Author: xinbingnan <xi...@xiaomi.com>
AuthorDate: Thu Sep 15 21:31:16 2022 +0800
tools/ci/cibuild.sh: add CodeChecker requirements for `cibuild.sh`
Signed-off-by: xinbingnan <xi...@xiaomi.com>
---
tools/ci/cibuild.sh | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/tools/ci/cibuild.sh b/tools/ci/cibuild.sh
index 829cd26412..19ca20de09 100755
--- a/tools/ci/cibuild.sh
+++ b/tools/ci/cibuild.sh
@@ -46,7 +46,7 @@ case ${os} in
brew update --quiet
;;
Linux)
- install="python-tools gen-romfs gperf kconfig-frontends rust arm-gcc-toolchain arm64-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain rx-gcc-toolchain sparc-gcc-toolchain c-cache"
+ install="python-tools codechecker clang_clang-tidy gen-romfs gperf kconfig-frontends rust arm-gcc-toolchain arm64-gcc-toolchain mips-gcc-toolchain riscv-gcc-toolchain xtensa-esp32-gcc-toolchain rx-gcc-toolchain sparc-gcc-toolchain c-cache"
;;
esac
@@ -70,6 +70,18 @@ function python-tools {
fi
}
+function codechecker {
+ pip3 install CodeChecker
+}
+
+function clang_clang-tidy {
+ # Install Clang and Clang-Tidy for Ubuntu.
+ apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -qq \
+ -o APT::Immediate-Configure=0 \
+ clang \
+ clang-tidy
+}
+
function u-boot-tools {
if ! type mkimage &> /dev/null; then
case ${os} in
[incubator-nuttx] 01/02: tools/ci/docker/linux/Dockerfile: Install CodeChecker and requirements(clang, clang-tidy)
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit ef6036f63e08cb2b998b35826a155f1387f7eb5a
Author: xinbingnan <xi...@xiaomi.com>
AuthorDate: Wed Sep 14 17:59:17 2022 +0800
tools/ci/docker/linux/Dockerfile: Install CodeChecker and requirements(clang, clang-tidy)
Signed-off-by: xinbingnan <xi...@xiaomi.com>
---
tools/ci/docker/linux/Dockerfile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/ci/docker/linux/Dockerfile b/tools/ci/docker/linux/Dockerfile
index 8d89c385c2..54c0fd7adf 100644
--- a/tools/ci/docker/linux/Dockerfile
+++ b/tools/ci/docker/linux/Dockerfile
@@ -229,6 +229,8 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
gcc \
gcc-avr \
gcc-multilib \
+ clang \
+ clang-tidy \
gettext \
git \
lib32z1-dev \
@@ -260,6 +262,8 @@ ENV PIP_NO_CACHE_DIR=0
# setuptools and also wheel so we can use the binary releases of packages
# instead of requiring them to be compiled.
RUN pip3 install setuptools wheel
+# Install CodeChecker and use it to statically analyze the code.
+RUN pip3 install CodeChecker
RUN mkdir /tools
WORKDIR /tools