]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Creating source tar file.
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Dec 2021 10:19:20 +0000 (11:19 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Dec 2021 10:19:20 +0000 (11:19 +0100)
.gitlab-ci.yml

index 2ee06302169eb1408325d53a339d2ff694ac12d5..d08f72e5eaeb8c6f17a6c57c368f96cacda0a31c 100644 (file)
@@ -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: