This runs cppcheck static analysis as part of the travis-ci checks. The current Travis version of cppcheck doesn't appear to support all the checks we want, but for now should be sufficient. Identified issues that would cause these checks to fail have been resolved in previous commits. Thanks to @turol for doing the work to set this up.
10 lines
232 B
Bash
Executable file
10 lines
232 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
if [ "$ANALYZE" = "true" ] ; then
|
|
cppcheck --error-exitcode=1 -j2 -UTESTING -Iopl -Isrc -Isrc/setup opl pcsound src textscreen > /dev/null
|
|
else
|
|
./autogen.sh
|
|
make
|
|
make install DESTDIR=/tmp/whatever
|
|
make dist
|
|
fi
|