comparison .gitlab-ci.yml @ 6920:df546ef8d75f mercurial-5.0

test-compat: merge mercurial-5.1 into mercurial-5.0
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 25 Oct 2024 18:11:50 +0400
parents cde3f4bc3075 a7929709e89f
children f4f5ae0bfc29
comparison
equal deleted inserted replaced
6815:cde3f4bc3075 6920:df546ef8d75f
1 .prepare_hg: &prepare_hg 1 .prepare_hg: &prepare_hg
2 - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg 2 - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg
3 - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$(hg identify --branch)")} 3 - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh $CI_COMMIT_HG_BRANCH)}
4 - hg -R /ci/repos/mercurial/ update "$hg_branch" 4 - hg -R /ci/repos/mercurial/ update "$hg_branch"
5 - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') 5 - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}')
6 - echo testing with mercurial branch="$hg_branch", revision="$hg_rev" 6 - echo testing with mercurial branch="$hg_branch", revision="$hg_rev"
7 7
8 pytype: 8 pytype:
22 22
23 .runtests_template: &runtests 23 .runtests_template: &runtests
24 image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd 24 image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd
25 before_script: 25 before_script:
26 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) 26 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt)
27 - (cd tests; ls -1 test-check-sdist.t test-doctest.py > /tmp/compat-blacklist.txt)
27 script: 28 script:
28 - *prepare_hg 29 - *prepare_hg
29 - ($PYTHON --version) 30 - ($PYTHON --version)
30 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) 31 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS)
31 32
32 checks-py2: 33 checks-py2:
33 <<: *runtests 34 <<: *runtests
34 variables: 35 variables:
35 PY: py2 36 PY: py2
36 PYTHON: prlimit --nofile=1024:1024 python2 37 PYTHON: prlimit --nofile=1024:1024 python2
37 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" 38 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
39 CI_CLEVER_CLOUD_FLAVOR: S
38 40
39 tests-py2-cext: 41 tests-py2-cext:
40 <<: *runtests 42 <<: *runtests
41 variables: 43 variables:
42 PY: py2 44 PY: py2
43 PYTHON: prlimit --nofile=1024:1024 python2 45 PYTHON: prlimit --nofile=1024:1024 python2
44 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" 46 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
45 TEST_HGMODULEPOLICY: "c" 47 TEST_HGMODULEPOLICY: "c"
46 48
47 tests-py2-pure: 49 tests-py2-pure:
48 <<: *runtests 50 <<: *runtests
49 variables: 51 variables:
50 PY: py2 52 PY: py2
51 PYTHON: prlimit --nofile=1024:1024 python2 53 PYTHON: prlimit --nofile=1024:1024 python2
52 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" 54 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt"
53 TEST_HGMODULEPOLICY: "py" 55 TEST_HGMODULEPOLICY: "py"