devtools/continuous-build.sh

33 lines
757 B
Bash
Raw Normal View History

2015-12-22 11:10:07 +01:00
#!/bin/bash
set -e
if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then
cd `dirname $0`
cd ..
export JEHANNE=`pwd`
2015-12-22 11:10:07 +01:00
export PATH="$JEHANNE/hacking/bin:$PATH"
export SH=`which rc`
export ARCH=amd64
2016-11-26 04:28:37 +01:00
git clean -xdf .
(cd $JEHANNE/hacking; git clean -xdf .)
if [ ! -f "$JEHANNE/hacking/bin/ufs" ]; then
echo "Cannot find build tools in $JEHANNE/hacking/bin"
$JEHANNE/hacking/buildtools.sh
fi
if [ ! -f "$JEHANNE/hacking/cross/toolchain/bin/x86_64-jehanne-gcc" ]; then
echo "Creating cross-compiling toolchain..."
(cd $JEHANNE/hacking/cross/; ./init.sh)
fi
2015-12-22 11:10:07 +01:00
echo
echo "Vendorized code verification..."
echo
for v in `find $JEHANNE -type f|grep vendor.json`; do
echo "cd `dirname $v`"
(cd `dirname $v`; vendor -check)
done
echo
build all
fi