DEB_REPO_HOST: 'repo01.pixelpark.com'
DEB_REPO_USER: 'rpm-repo'
DEB_REPO_UPLOAD_DIR: '/srv/www/repo/Linux/debian/incoming'
+ EXPIRE_ARTIFACTS_IN: '1 week'
FB_REPOSERVER_URL: 'http://repo.uhu-banane.de'
FB_REPOSERVER_GPGKEY_URL: 'http://repo.uhu-banane.de/public/repo.uhu-banane.de.gpg-key2.asc'
NOTIFY_ADDRESS: 'frank.brehm@pixelpark.com'
USED_CHARSET: 'utf8'
USED_LOCALE: 'en_US'
USED_LC: 'en_US.utf8'
+ cache:
+ key: ${CI_JOB_NAME}
+ paths:
+ - .rpm-version
+ artifacts:
+ name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
+ paths:
+ - rpmdir/RPMS/*/*.rpm
+ - rpmdir/SRPMS/*.src.rpm
+ expire_in: $EXPIRE_ARTIFACTS_IN
before_script:
- |
echo "All locales"
cat /etc/yum.repos.d/pixelpark.repo
- yum makecache
- ${YUM} --assumeyes upgrade
- - ${YUM} --assumeyes install ${PYTHON_PACKAGES} gnupg2 rpm-build tree gettext expect
+ - ${YUM} --assumeyes install ${PYTHON_PACKAGES} gnupg2 rpm-build gettext
- ls -l --color=always /bin/python* /bin/pip* || true
- pip3 list --format columns
script:
-e "s/@@@py_version_nodot@@@/${PYTHON_VERSION_NODOT}/gi" > pp-admintools.spec
echo "Generated spec-file:"
cat pp-admintools.spec
+ echo "${PKG_VERSION}-${PKG_RELEASE}" > .rpm-version
- |
echo "Creating ${HOME}/.rpmmacros ..."
echo "%__python3 /bin/python${PYTHON_VERSION_DOT}" > "${HOME}/.rpmmacros"
rpmbuild -ba --nocheck --verbose --define "_topdir $(pwd)/rpmdir" --define "version ${PKG_VERSION}" pp-admintools.spec
- |
echo "Results:"
- tree -aQpugs rpmdir/*RPMS || true
- tree -aQpugs rpmdir/*RPMS || true
- ls -lA rpmdir/RPMS/*/* rpmdir/SRPMS/*
+ find rpmdir/*RPMS -type f -print0 | xargs --null --no-run-if-empty ls -l -d --color=always
build CentOS 7 with Python 3.6:
- '.pkg-build-rules'
image: centos:7
+build CentOS 8 with Python 3.8:
+ variables:
+ EL_MAJOR_VERSION: '8'
+ YUM: dnf
+ PYTHON_PACKAGES: >
+ python38 python38-pip python38-devel python38-setuptools
+ python38-pytz python38-babel python38-six platform-python-devel
+ python38-fb-logging python38-fb-tools python38-fb-pdnstools
+ PYTHON_VERSION_DOT: '3.8'
+ PYTHON_VERSION_NODOT: '38'
+ extends:
+ - '.pkg-build-rules'
+ image: centos:8
+