fruitjam-doom/.travis.sh
turol 63141cfc0d Add cppcheck static analysis to travis build (#939)
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.
2017-09-03 16:29:27 -04:00

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