diff options
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/codestyle.sh | 7 | ||||
-rwxr-xr-x | ci/gh-install.sh | 1 | ||||
-rwxr-xr-x | ci/rpmostree.sh | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/ci/codestyle.sh b/ci/codestyle.sh index 1cf0a23c..850661e5 100755 --- a/ci/codestyle.sh +++ b/ci/codestyle.sh @@ -15,6 +15,13 @@ done echo "ok" fi +# Will uncomment this once we reformat +#if command -v clang-format; then +# echo -n "checking clang-format... " +# git ls-files '**.c' '**.cxx' '**.h' '**.hpp' | xargs clang-format --Werror --dry-run +# echo "ok" +#fi + echo -n 'grep-based static analysis... ' patterns=(glnx_fd_close) for pat in "${patterns[@]}"; do diff --git a/ci/gh-install.sh b/ci/gh-install.sh index c2928665..966edb28 100755 --- a/ci/gh-install.sh +++ b/ci/gh-install.sh @@ -71,6 +71,7 @@ case "$ID" in build-essential bubblewrap ca-certificates + clang-format cpio debhelper dh-exec diff --git a/ci/rpmostree.sh b/ci/rpmostree.sh index 0a5f5df9..554cde69 100755 --- a/ci/rpmostree.sh +++ b/ci/rpmostree.sh @@ -22,7 +22,7 @@ pkg_install rpm-ostree && rpm -e rpm-ostree pkg_install ostree{,-devel,-grub2} createrepo_c /usr/bin/jq python3-pyyaml \ libubsan libasan libtsan elfutils fuse sudo python3-gobject-base \ selinux-policy-devel selinux-policy-targeted python3-createrepo_c \ - rsync python3-rpm parallel clang rustfmt-preview + rsync python3-rpm parallel clang rustfmt-preview clang-tools-extra # From rpm-ostree/ci/vmcheck-provision.sh pkg_install openssh-clients ansible |