Mercurial > evolve
diff .gitlab-ci.yml @ 6155:5bd5a7ab32d3
branching: merge with stable
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 25 Feb 2022 01:52:58 +0300 |
parents | 0d53a8d4170b |
children | 47f1a6bea77f fcb1ba8e77fc |
line wrap: on
line diff
--- a/.gitlab-ci.yml Mon Feb 21 18:26:25 2022 +0300 +++ b/.gitlab-ci.yml Fri Feb 25 01:52:58 2022 +0300 @@ -11,13 +11,13 @@ script: - *prepare_hg - pytype --version - - jobs=$(python -c 'import multiprocessing; print multiprocessing.cpu_count()') + - jobs=$(python3 -c 'import multiprocessing; print(multiprocessing.cpu_count())') - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true when: manual variables: - PY: py2 - PYTHON: python + PY: py3 + PYTHON: python3 RUNTEST_ARGS: "" TEST_HGMODULEPOLICY: "allow" @@ -33,40 +33,40 @@ checks-py2: <<: *runtests variables: + PY: py2 + PYTHON: python2 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" checks-py3: <<: *runtests variables: - PY: py3 - PYTHON: python3 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" tests-py2-cext: <<: *runtests variables: + PY: py2 + PYTHON: python2 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" TEST_HGMODULEPOLICY: "c" tests-py2-pure: <<: *runtests variables: + PY: py2 + PYTHON: python2 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" TEST_HGMODULEPOLICY: "py" tests-py3-cext: <<: *runtests variables: - PY: py3 - PYTHON: python3 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" TEST_HGMODULEPOLICY: "c" tests-py3-pure: <<: *runtests variables: - PY: py3 - PYTHON: python3 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" TEST_HGMODULEPOLICY: "py" @@ -76,9 +76,7 @@ - make doc variables: LANG: en_US.UTF-8 - PYTHON: python3 PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH" - SPHINXBUILD: python3 -m sphinx -b html artifacts: paths: - html/* @@ -120,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