- 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: