comparison .gitlab-ci.yml @ 6187:df8df57a3ce3 mercurial-5.0

test-compat: merge mercurial-5.1 into mercurial-5.0
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 22 Feb 2022 18:21:24 +0300
parents b8a1743e7ff9 91207a1c4dfa
children 314682992f7d
comparison
equal deleted inserted replaced
6186:c915d9441654 6187:df8df57a3ce3
32 checks-py2: 32 checks-py2:
33 <<: *runtests 33 <<: *runtests
34 variables: 34 variables:
35 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" 35 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt"
36 36
37 checks-py3:
38 <<: *runtests
39 variables:
40 PY: py3
41 PYTHON: python3
42 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt"
43
44 tests-py2-cext: 37 tests-py2-cext:
45 <<: *runtests 38 <<: *runtests
46 variables: 39 variables:
47 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" 40 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt"
48 TEST_HGMODULEPOLICY: "c" 41 TEST_HGMODULEPOLICY: "c"
50 tests-py2-pure: 43 tests-py2-pure:
51 <<: *runtests 44 <<: *runtests
52 variables: 45 variables:
53 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" 46 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
54 TEST_HGMODULEPOLICY: "py" 47 TEST_HGMODULEPOLICY: "py"
55
56 tests-py3-cext:
57 <<: *runtests
58 variables:
59 PY: py3
60 PYTHON: python3
61 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt"
62 TEST_HGMODULEPOLICY: "c"
63
64 tests-py3-pure:
65 <<: *runtests
66 variables:
67 PY: py3
68 PYTHON: python3
69 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt"
70 TEST_HGMODULEPOLICY: "py"
71
72 doc:
73 image: registry.heptapod.net/mercurial/ci-images/py3-evolve-doc
74 script:
75 - make doc
76 variables:
77 LANG: en_US.UTF-8
78 PYTHON: python3
79 PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH"
80 SPHINXBUILD: python3 -m sphinx -b html
81 artifacts:
82 paths:
83 - html/*
84
85 sdist:
86 stage: .post
87 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd
88 script:
89 - python3 setup.py sdist
90 artifacts:
91 paths:
92 - dist/*
93 only:
94 - tags
95
96 .windows_runtests_template: &windows_runtests
97 before_script:
98 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt'
99 script:
100 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && tests/testlib/update-hg-repo.sh C:/Temp/hg'
101 - >
102 C:/MinGW/msys/1.0/bin/sh.exe --login -c '
103 cd "$OLDPWD" &&
104 evo_branch=$(hg identify --branch) &&
105 hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$evo_branch")} &&
106 hg -R C:/Temp/hg update "$hg_branch" &&
107 hg_rev=$(hg log -R C:/Temp/hg -r . -T "\{node\}") &&
108 echo testing with mercurial branch="$hg_branch", revision="$hg_rev"'
109 - Invoke-Expression "$Env:PYTHON --version"
110 - echo "$Env:RUNTEST_ARGS"
111 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON C:/Temp/hg/tests/run-tests.py --color=always $RUNTEST_ARGS'
112
113 windows-py3:
114 <<: *windows_runtests
115 tags:
116 - windows
117 variables:
118 PYTHON: py -3
119 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt"
120 TEST_HGMODULEPOLICY: "c"
121 when: manual