Debian Codegraph @

scripts/travis-build

raw
1 #!/bin/bash
2
3 PATH=/home/`whoami`/.local/bin:$PATH
4 DIR=$(readlink -f .)
5 # Stop on error
6 set -e
7 # Echo all commands to Travis log
8 set -x
9 # Cleanup first
10 make clean
11
12
13 CC=clang CFLAGS=-Werror make
14 make clean
15
16 # Run sparse on the subdirectories which are sparse clean
17 CC=cgcc CFLAGS="-Werror" make > /dev/null 2>&1 | grep -v '^/usr/include' | tee out
18 make clean
19 # sparse does not fail gcc on messages
20 if [ -s out ]; then
21 false
22 fi
23
24 # Test out gcc-8
25 CC=gcc-8 CFLAGS="-Werror" make