Add clang-9 to compilation matrix

This commit is contained in:
Arun Prakash Jana 2020-03-16 07:22:33 +05:30
parent b8a973a91a
commit 1cf50e738f
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 9 additions and 4 deletions

View file

@ -16,7 +16,7 @@ jobs:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add -
apt-add-repository -y "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main" apt-add-repository -y "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-8 main"
apt update -qq apt update -qq
apt install -y --no-install-recommends git gcc gcc-8 gcc-9 clang clang-8 clang-tidy-8 make pkg-config libncursesw5-dev libreadline-dev apt install -y --no-install-recommends git gcc gcc-8 gcc-9 clang clang-8 clang-9 clang-tidy-9 make pkg-config libncursesw5-dev libreadline-dev
- checkout - checkout
- run: - run:
command: | command: |
@ -48,8 +48,13 @@ jobs:
ls -l nnn ls -l nnn
make clean make clean
echo echo
echo "########## clang-tidy-8 ##########" echo "########## clang-9 ##########"
clang-tidy-8 src/* -- -I/usr/include -I/usr/include/ncursesw CC=clang-9 make strip
ls -l nnn
make clean
echo
echo "########## clang-tidy-9 ##########"
clang-tidy-9 src/* -- -I/usr/include -I/usr/include/ncursesw
echo "########## checllcheck ##########" echo "########## checllcheck ##########"
find plugins/ -type f -not -name "*.md" -exec shellcheck -e SC1090 {} + find plugins/ -type f -not -name "*.md" -exec shellcheck -e SC1090 {} +

View file

@ -1,5 +1,5 @@
--- ---
Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-braces-around-statements,-readability-isolate-declaration,-bugprone-narrowing-conversions' Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-braces-around-statements,-readability-isolate-declaration,-bugprone-narrowing-conversions'
WarningsAsErrors: '*' WarningsAsErrors: '*'
HeaderFilterRegex: '.*(?<!lookup3.c)$' HeaderFilterRegex: '.*(?<!lookup3.c)$'
FormatStyle: 'file' FormatStyle: 'file'