Mercurial > evolve
comparison .gitlab-ci.yml @ 6804:241c4fec9723 mercurial-6.1
test-compat: merge mercurial-6.2 into mercurial-6.1
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 26 Jun 2024 15:19:21 +0400 |
parents | 44e41905b289 |
children | e51dfd0e1a88 701d4bb5d53c |
comparison
equal
deleted
inserted
replaced
6803:5793b25f6525 | 6804:241c4fec9723 |
---|---|
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 script: | 27 script: |
28 - *prepare_hg | 28 - *prepare_hg |
29 - ("$PYTHON" --version) | 29 - ($PYTHON --version) |
30 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) | 30 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
31 | |
32 checks-py2: | |
33 <<: *runtests | |
34 variables: | |
35 PY: py2 | |
36 PYTHON: prlimit --nofile=1024:1024 python2 | |
37 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | |
31 | 38 |
32 checks-py3: | 39 checks-py3: |
33 <<: *runtests | 40 <<: *runtests |
34 variables: | 41 variables: |
35 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | 42 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" |
43 | |
44 tests-py2-cext: | |
45 <<: *runtests | |
46 variables: | |
47 PY: py2 | |
48 PYTHON: prlimit --nofile=1024:1024 python2 | |
49 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" | |
50 TEST_HGMODULEPOLICY: "c" | |
51 | |
52 tests-py2-pure: | |
53 <<: *runtests | |
54 variables: | |
55 PY: py2 | |
56 PYTHON: prlimit --nofile=1024:1024 python2 | |
57 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
58 TEST_HGMODULEPOLICY: "py" | |
36 | 59 |
37 tests-py3-cext: | 60 tests-py3-cext: |
38 <<: *runtests | 61 <<: *runtests |
39 variables: | 62 variables: |
40 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" | 63 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
43 tests-py3-pure: | 66 tests-py3-pure: |
44 <<: *runtests | 67 <<: *runtests |
45 variables: | 68 variables: |
46 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | 69 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
47 TEST_HGMODULEPOLICY: "py" | 70 TEST_HGMODULEPOLICY: "py" |
48 | |
49 doc: | |
50 image: registry.heptapod.net/mercurial/ci-images/py3-evolve-doc | |
51 script: | |
52 - make doc | |
53 variables: | |
54 LANG: en_US.UTF-8 | |
55 PYTHONPATH: "/ci/repos/mercurial:$PYTHONPATH" | |
56 artifacts: | |
57 paths: | |
58 - html/* | |
59 | |
60 sdist: | |
61 stage: .post | |
62 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd | |
63 script: | |
64 - python3 setup.py sdist | |
65 artifacts: | |
66 paths: | |
67 - dist/* | |
68 only: | |
69 - tags | |
70 | 71 |
71 .windows_runtests_template: &windows_runtests | 72 .windows_runtests_template: &windows_runtests |
72 before_script: | 73 before_script: |
73 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' | 74 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' |
74 script: | 75 script: |
92 variables: | 93 variables: |
93 PYTHON: py -3 | 94 PYTHON: py -3 |
94 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" | 95 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
95 TEST_HGMODULEPOLICY: "c" | 96 TEST_HGMODULEPOLICY: "c" |
96 when: manual | 97 when: manual |
97 | |
98 deb: | |
99 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.0 | |
100 script: | |
101 - apt-get update && apt-get -yq install devscripts equivs lintian --no-install-recommends | |
102 - mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control | |
103 - version=$($PYTHON setup.py --version) | |
104 - debversion="$version+hg$(date +%Y%m%d)+$(hg log -r . -T '{node|short}')" | |
105 - make deb-prepare | |
106 - mkdir -p debs | |
107 - mv ../mercurial-evolve_$version.orig debs/mercurial-evolve_$debversion.orig | |
108 - cd debs/mercurial-evolve_$debversion.orig | |
109 - debchange --newversion "$debversion-1" "automated build" | |
110 - debuild --unsigned-source --unsigned-changes --build=binary | |
111 - dpkg --contents ../mercurial-evolve_$debversion-1_all.deb | |
112 variables: | |
113 DEBEMAIL: evolve-testers@mercurial-scm.org | |
114 DEBFULLNAME: Evolve CI Package Builder | |
115 DEBIAN_FRONTEND: noninteractive | |
116 DEB_BUILD_OPTIONS: nocheck nodoc | |
117 artifacts: | |
118 paths: | |
119 - debs/*.build | |
120 - debs/*.buildinfo | |
121 - debs/*.changes | |
122 - debs/*.deb | |
123 when: manual |