mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Add CircleCI clang all
This commit is contained in:
parent
d51f889944
commit
b42fcc1ba4
|
@ -11,24 +11,45 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
apt update -qq
|
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
|
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 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
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
command: |
|
command: |
|
||||||
export CFLAGS=-Werror
|
export CFLAGS=-Werror
|
||||||
make clean
|
make clean
|
||||||
|
echo
|
||||||
|
echo "########## gcc ##########"
|
||||||
CC=gcc make strip
|
CC=gcc make strip
|
||||||
ls -l nnn
|
ls -l nnn
|
||||||
make clean
|
make clean
|
||||||
|
echo
|
||||||
|
echo "########## gcc-8 ##########"
|
||||||
CC=gcc-8 make strip
|
CC=gcc-8 make strip
|
||||||
ls -l nnn
|
ls -l nnn
|
||||||
make clean
|
make clean
|
||||||
|
echo
|
||||||
|
echo "########## gcc-9 ##########"
|
||||||
CC=gcc-9 make strip
|
CC=gcc-9 make strip
|
||||||
ls -l nnn
|
ls -l nnn
|
||||||
make clean
|
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:
|
package-and-publish:
|
||||||
machine: true
|
machine: true
|
||||||
|
|
Loading…
Reference in a new issue