mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-21 19:41:37 +00:00
Fixed coverity script
This commit is contained in:
parent
97b484ee6c
commit
b8e6e6fe0d
1 changed files with 5 additions and 6 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue