# HG changeset patch # User Anton Shestakov # Date 1645355679 -10800 # Node ID 0d53a8d4170b32d03e4fd8582b32fe2790d5e34f # Parent 90067fe2df5d17b4f2b01f00aea73c8656d81ea5 ci: add a manual job to build a .deb package diff -r 90067fe2df5d -r 0d53a8d4170b .gitlab-ci.yml --- a/.gitlab-ci.yml Sun Feb 20 13:35:47 2022 +0300 +++ b/.gitlab-ci.yml Sun Feb 20 14:14:39 2022 +0300 @@ -118,3 +118,28 @@ RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" TEST_HGMODULEPOLICY: "c" when: manual + +deb: + image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd + script: + - apt-get update && apt-get -yq install devscripts equivs --no-install-recommends + - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control + - version=$($PYTHON setup.py --version) + - debversion="$version+hg$(date +%Y%m%d)+$(hg log -r . -T '{node|short}')" + - make deb-prepare + - mkdir -p debs + - mv ../mercurial-evolve_$version.orig debs/mercurial-evolve_$debversion.orig + - cd debs/mercurial-evolve_$debversion.orig + - DEBEMAIL="evolve-testers@mercurial-scm.org" debchange --newversion "$debversion-1" "automated build" + - debuild --unsigned-source --unsigned-changes --build=binary + - dpkg --contents ../mercurial-evolve_$debversion-1_all.deb + variables: + DEBIAN_FRONTEND: noninteractive + DEB_BUILD_OPTIONS: nocheck nodoc + artifacts: + paths: + - debs/*.build + - debs/*.buildinfo + - debs/*.changes + - debs/*.deb + when: manual