Commit 4de00fed authored by Jim Harris's avatar Jim Harris
Browse files

autopackage: move tarball build to nightly testing



There's not a lot of value in building from the
tarballs on every patch.  The git status --porcelain
check is still good on every patch though.  So
return early if it's not the nightly test - this may
cut up 90 seconds on some tests.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I351a43b802061fe7d7bc4556b3b003a9ec73833f

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452810


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarSeth Howell <seth.howell5141@gmail.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent a5599094
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -10,8 +10,7 @@ out=$PWD
MAKEFLAGS=${MAKEFLAGS:--j16}
cd $rootdir

timing_enter autopackage

timing_enter porcelain_check
$MAKE clean

if [ `git status --porcelain --ignore-submodules | wc -l` -ne 0 ]; then
@@ -19,6 +18,14 @@ if [ `git status --porcelain --ignore-submodules | wc -l` -ne 0 ]; then
	git status --porcelain --ignore-submodules
	exit 1
fi
timing_exit porcelain_check

if [ $RUN_NIGHTLY -eq 0 ]; then
	timing_finish
	exit 0
fi

timing_enter autopackage

spdk_pv=spdk-$(date +%Y_%m_%d)
spdk_tarball=${spdk_pv}.tar