comparison .gitlab-ci.yml @ 5342:4a958a7bb138

ci: set HGMODULEPOLICY when running specific variants
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 24 May 2020 16:29:20 +0800
parents efb8ae4419b2
children f464b29898e3
comparison
equal deleted inserted replaced
5341:efb8ae4419b2 5342:4a958a7bb138
15 15
16 variables: 16 variables:
17 PY: py2 17 PY: py2
18 PYTHON: python 18 PYTHON: python
19 RUNTEST_ARGS: "" 19 RUNTEST_ARGS: ""
20 TEST_HGMODULEPOLICY: "allow"
20 21
21 .runtests_template: &runtests 22 .runtests_template: &runtests
22 image: octobus/ci-$PY-hgext3rd 23 image: octobus/ci-$PY-hgext3rd
23 script: 24 script:
24 - hg pull -R /ci/repos/mercurial/ 25 - hg pull -R /ci/repos/mercurial/
25 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')") 26 - hg_rev=$(tests/testlib/map-hg-rev.sh "$(hg log -r . -T '{branch}')")
26 - hg -R /ci/repos/mercurial/ update "$hg_rev" 27 - hg -R /ci/repos/mercurial/ update "$hg_rev"
27 - (cd tests; "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) 28 - (cd tests; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS)
28 29
29 tests-py2-cext: 30 tests-py2-cext:
30 <<: *runtests 31 <<: *runtests
32 variables:
33 TEST_HGMODULEPOLICY: "c"
31 34
32 tests-py2-pure: 35 tests-py2-pure:
33 <<: *runtests 36 <<: *runtests
34 variables: 37 variables:
35 RUNTEST_ARGS: "--pure" 38 RUNTEST_ARGS: "--pure"
39 TEST_HGMODULEPOLICY: "py"
36 40
37 tests-py3-cext: 41 tests-py3-cext:
38 <<: *runtests 42 <<: *runtests
39 variables: 43 variables:
40 PY: py3 44 PY: py3
41 PYTHON: python3 45 PYTHON: python3
46 TEST_HGMODULEPOLICY: "c"
42 47
43 tests-py3-pure: 48 tests-py3-pure:
44 <<: *runtests 49 <<: *runtests
45 variables: 50 variables:
46 PY: py3 51 PY: py3
47 PYTHON: python3 52 PYTHON: python3
48 RUNTEST_ARGS: "--pure" 53 RUNTEST_ARGS: "--pure"
54 TEST_HGMODULEPOLICY: "py"
49 55
50 doc: 56 doc:
51 image: octobus/ci-py2-evolve-doc 57 image: octobus/ci-py2-evolve-doc
52 script: 58 script:
53 - cd docs/ 59 - cd docs/