comparison .gitlab-ci.yml @ 6152:0d53a8d4170b stable 10.5.0

ci: add a manual job to build a .deb package
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 20 Feb 2022 14:14:39 +0300
parents 90067fe2df5d
children 47f1a6bea77f fcb1ba8e77fc
comparison
equal deleted inserted replaced
6151:90067fe2df5d 6152:0d53a8d4170b
116 variables: 116 variables:
117 PYTHON: py -3 117 PYTHON: py -3
118 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" 118 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt"
119 TEST_HGMODULEPOLICY: "c" 119 TEST_HGMODULEPOLICY: "c"
120 when: manual 120 when: manual
121
122 deb:
123 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd
124 script:
125 - apt-get update && apt-get -yq install devscripts equivs --no-install-recommends
126 - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
127 - version=$($PYTHON setup.py --version)
128 - debversion="$version+hg$(date +%Y%m%d)+$(hg log -r . -T '{node|short}')"
129 - make deb-prepare
130 - mkdir -p debs
131 - mv ../mercurial-evolve_$version.orig debs/mercurial-evolve_$debversion.orig
132 - cd debs/mercurial-evolve_$debversion.orig
133 - DEBEMAIL="evolve-testers@mercurial-scm.org" debchange --newversion "$debversion-1" "automated build"
134 - debuild --unsigned-source --unsigned-changes --build=binary
135 - dpkg --contents ../mercurial-evolve_$debversion-1_all.deb
136 variables:
137 DEBIAN_FRONTEND: noninteractive
138 DEB_BUILD_OPTIONS: nocheck nodoc
139 artifacts:
140 paths:
141 - debs/*.build
142 - debs/*.buildinfo
143 - debs/*.changes
144 - debs/*.deb
145 when: manual