diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-04-13 11:52:19 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-04-13 12:36:52 +0530 |
commit | b42fcc1ba4e6b6730ca9c56870b7fe9b3ff57f93 (patch) | |
tree | 556c2eaeee055cdc6cc57debe357eb2ffeb8e58f | |
parent | d51f889944f3079a9a33994f5bd425e0d38af471 (diff) | |
download | nnn-b42fcc1ba4e6b6730ca9c56870b7fe9b3ff57f93.tar.gz |
Add CircleCI clang all
-rw-r--r-- | .circleci/config.yml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 0534e7f..eba0594 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,24 +11,45 @@ jobs: - run: command: | apt update -qq - apt install -y --no-install-recommends software-properties-common + apt install -y --no-install-recommends software-properties-common wget gpg-agent apt-add-repository -y ppa:jonathonf/gcc-9.0 + 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 update -qq - apt install -y --no-install-recommends git gcc gcc-8 gcc-9 make pkg-config libncursesw5-dev libreadline-dev + 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 - checkout - run: command: | export CFLAGS=-Werror make clean + echo + echo "########## gcc ##########" CC=gcc make strip ls -l nnn make clean + echo + echo "########## gcc-8 ##########" CC=gcc-8 make strip ls -l nnn make clean + echo + echo "########## gcc-9 ##########" CC=gcc-9 make strip ls -l nnn make clean + echo + echo "########## clang ##########" + CC=clang make strip + ls -l nnn + make clean + echo + echo "########## clang-8 ##########" + CC=clang-8 make strip + ls -l nnn + make clean + echo + echo "########## clang-tidy-8 ##########" + clang-tidy-8 src/* -- -I/usr/include -I/usr/include/ncursesw package-and-publish: machine: true |