Mercurial > evolve
comparison .gitlab-ci.yml @ 6899:43b1fcb4055c mercurial-6.7
test-compat: merge mercurial-6.8 into mercurial-6.7
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 24 Oct 2024 17:57:11 +0400 |
parents | f46913e52954 95817be66c0d |
children | 1c7dcb1db06d |
comparison
equal
deleted
inserted
replaced
6798:f46913e52954 | 6899:43b1fcb4055c |
---|---|
13 - jobs=$(python3 -c 'import multiprocessing; print(multiprocessing.cpu_count())') | 13 - jobs=$(python3 -c 'import multiprocessing; print(multiprocessing.cpu_count())') |
14 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true | 14 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
15 when: manual | 15 when: manual |
16 | 16 |
17 variables: | 17 variables: |
18 PY: py3 | |
19 PYTHON: python3 | 18 PYTHON: python3 |
20 RUNTEST_ARGS: "" | 19 RUNTEST_ARGS: "" |
21 TEST_HGMODULEPOLICY: "allow" | 20 TEST_HGMODULEPOLICY: "allow" |
22 | 21 |
23 .runtests_template: &runtests | 22 .runtests_template: &runtests |
24 image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd | 23 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.1 |
25 before_script: | 24 before_script: |
26 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) | 25 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) |
27 script: | 26 script: |
28 - *prepare_hg | 27 - *prepare_hg |
29 - ("$PYTHON" --version) | 28 - ("$PYTHON" --version) |
30 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) | 29 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
31 | 30 |
32 checks-py3: | 31 checks-py3: |
33 <<: *runtests | 32 <<: *runtests |
33 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd:v2.0 | |
34 variables: | 34 variables: |
35 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" | 35 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt" |
36 CI_CLEVER_CLOUD_FLAVOR: S | |
36 | 37 |
37 tests-py3-cext: | 38 tests-py3-cext: |
38 <<: *runtests | 39 <<: *runtests |
39 variables: | 40 variables: |
40 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" | 41 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt" |
43 tests-py3-pure: | 44 tests-py3-pure: |
44 <<: *runtests | 45 <<: *runtests |
45 variables: | 46 variables: |
46 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | 47 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
47 TEST_HGMODULEPOLICY: "py" | 48 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 | 49 |
71 .windows_runtests_template: &windows_runtests | 50 .windows_runtests_template: &windows_runtests |
72 before_script: | 51 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' | 52 - 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: | 53 script: |
92 variables: | 71 variables: |
93 PYTHON: py -3 | 72 PYTHON: py -3 |
94 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" | 73 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
95 TEST_HGMODULEPOLICY: "c" | 74 TEST_HGMODULEPOLICY: "c" |
96 when: manual | 75 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 |