summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/init.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-08 02:25:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-08 02:25:20 +0300
commit24458e96c0181f4f64f70da763315d4f07835bcd (patch)
treeb22bc5a225eadc83ee81598012f528d01172a9dc /tools/ci/scripts/init.sh
parent814aa2e53fccc262595ac045533f535eeff85ae7 (diff)
downloadplus-24458e96c0181f4f64f70da763315d4f07835bcd.tar.gz
plus-24458e96c0181f4f64f70da763315d4f07835bcd.tar.bz2
plus-24458e96c0181f4f64f70da763315d4f07835bcd.tar.xz
plus-24458e96c0181f4f64f70da763315d4f07835bcd.zip
Add make clean before building ci jobs.
Diffstat (limited to 'tools/ci/scripts/init.sh')
-rwxr-xr-xtools/ci/scripts/init.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ci/scripts/init.sh b/tools/ci/scripts/init.sh
index 9969a82ec..0ef5c219e 100755
--- a/tools/ci/scripts/init.sh
+++ b/tools/ci/scripts/init.sh
@@ -188,7 +188,8 @@ function run_make {
export JOBS=2
echo "No JOBS defined"
fi
-
+ echo make clean
+ make clean || true
echo "make -j${JOBS} V=0 $*"
make -j${JOBS} V=0 $* 2>$ERRFILE
check_error $?
@@ -200,6 +201,8 @@ function run_make_check {
export JOBS=2
echo "No JOBS defined"
fi
+ echo make clean
+ make clean || true
echo "make -j${JOBS} V=0 check $*"
make -j${JOBS} V=0 check $* 2>$ERRFILE
export ERR=$?