From: Frank Brehm Date: Thu, 16 Dec 2021 10:19:20 +0000 (+0100) Subject: Creating source tar file. X-Git-Tag: 0.4.1~4^2~29 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=3463061d4ae2586123c9a54846074721638ab91e;p=pixelpark%2Fpp-admin-tools.git Creating source tar file. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2ee0630..d08f72e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -188,9 +188,24 @@ Linter: - yum makecache - ${YUM} --assumeyes upgrade - ${YUM} --assumeyes install ${PYTHON_PACKAGES} gnupg2 rpm-build tree gettext expect + - ls -l --color=always /bin/python* /bin/pip* || true + - pip3 list script: - mkdir -pv rpmdir - mkdir -pv rpmdir/SOURCES + - | + echo "Creating source tar file ..." + ODIR=$(pwd) + ROOT_OBJECTS=$( ls -A1 | egrep -vw ".git|rpmdir" ) + PKG_VERSION=$( ./get-rpm-version ) + PKG_RELEASE=$( ./get-rpm-release ) + echo "Version to build: ${PKG_VERSION}-${PKG_RELEASE}" + mkdir -pv "rpmdir/SOURCES/pp_admintools-${PKG_VERSION}" + tar cf - ${ROOT_OBJECTS} | (cd "rpmdir/SOURCES/python_fb_tools-${PKG_VERSION}" ; tar xf -) + echo "Creating rpmdir/SOURCES/fb_tools.${PKG_VERSION}.tar.gz ..." + cd rpmdir/SOURCES && tar cfz "fb_tools.${PKG_VERSION}.tar.gz" "python_fb_tools-${PKG_VERSION}" + ls -lA --color=always + cd "${ODIR}" build CentOS 7 with Python 3.6: variables: