Fixed coverity script

This commit is contained in:
Remy Marquis 2020-03-29 21:37:18 +02:00
parent 97b484ee6c
commit b8e6e6fe0d

View file

@ -6,7 +6,7 @@
# Runs in the docker builder at etlegacy.com # Runs in the docker builder at etlegacy.com
# #
# Folder structure: # Folder structure:
# coverity.sh # - coverity.sh
# - etlegacy # - etlegacy
# ... built code # ... built code
# - github.com # - github.com
@ -18,9 +18,8 @@
# - cov-analysis-linux64-2019.03 # - cov-analysis-linux64-2019.03
# - cov-int # - cov-int
# #
topdir="$HOME/github.com/etlegacy" srcdir="$HOME/github.com/etlegacy/etlegacy"
srcdir="${topdir}/etlegacy" covdir="$HOME/github.com/etlegacy/coverity/etlegacy-cov"
covdir="${topdir}/coverity/etlegacy-cov"
covver="linux64-2019.03" covver="linux64-2019.03"
# account # account
@ -32,6 +31,7 @@ cd $srcdir
git stash git stash
git checkout master git checkout master
git pull git pull
git submodule update --init --recursive
# cleanup # cleanup
[[ -e $srcdir/build ]] && rm -rf $srcdir/build [[ -e $srcdir/build ]] && rm -rf $srcdir/build
@ -57,7 +57,6 @@ version=$(git describe --always | sed -r 's/^v//;s/-/./g;')
version=${version:${#version} - 7} version=${version:${#version} - 7}
# build # build
cd $HOME/$srcdir
$covdir/cov-analysis-${covver}/bin/cov-build --dir $covdir/cov-int make -j 4 $covdir/cov-analysis-${covver}/bin/cov-build --dir $covdir/cov-int make -j 4
cd $covdir cd $covdir
@ -74,6 +73,6 @@ curl -k \
# cleanup # cleanup
rm ${covdir}/etlegacy-${version}.tgz rm ${covdir}/etlegacy-${version}.tgz
#[[ -e "${topdir}/coverity/cov-int" ]] && rm -rf "${covdir}/cov-int" #[[ -e "$HOME/github.com/etlegacy/coverity/cov-int" ]] && rm -rf "${covdir}/cov-int"
# vim:set ts=4 sw=2 et: # vim:set ts=4 sw=2 et: