Mercurial > evolve
annotate .gitlab-ci.yml @ 6910:038df334d51a mercurial-6.0
test-compat: merge mercurial-6.1 into mercurial-6.0
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 25 Oct 2024 15:50:15 +0400 |
parents | e51dfd0e1a88 701d4bb5d53c |
children | a7929709e89f |
rev | line source |
---|---|
5371
02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
Anton Shestakov <av6@dwimlabs.net>
parents:
5370
diff
changeset
|
1 .prepare_hg: &prepare_hg |
6776
76c2f08b57ee
ci: pull the hg clone explicitly from m-s.o only
Anton Shestakov <av6@dwimlabs.net>
parents:
6750
diff
changeset
|
2 - hg pull -R /ci/repos/mercurial/ https://repo.mercurial-scm.org/hg |
6907
5439ac6b2fc2
ci: replace `hg id` call with $CI_COMMIT_HG_BRANCH
Anton Shestakov <av6@dwimlabs.net>
parents:
6906
diff
changeset
|
3 - hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh $CI_COMMIT_HG_BRANCH)} |
5541
98e2613d797d
branching: merge with stable
Pierre-Yves David <pierre-yves.david@octobus.net>
diff
changeset
|
4 - hg -R /ci/repos/mercurial/ update "$hg_branch" |
5564
0e23393dda9c
ci: drop extraneous space
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
5541
diff
changeset
|
5 - hg_rev=$(hg log -R /ci/repos/mercurial/ -r . -T '{node}') |
5541
98e2613d797d
branching: merge with stable
Pierre-Yves David <pierre-yves.david@octobus.net>
diff
changeset
|
6 - echo testing with mercurial branch="$hg_branch", revision="$hg_rev" |
4926
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4925
diff
changeset
|
7 |
5076
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
4986
diff
changeset
|
8 pytype: |
5677
9a16cf248b05
heptapod-ci: new address for base Docker images
Georges Racinet <georges.racinet@octobus.net>
parents:
5662
diff
changeset
|
9 image: registry.heptapod.net/mercurial/ci-images/py3-hgext3rd |
5076
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
4986
diff
changeset
|
10 script: |
5371
02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
Anton Shestakov <av6@dwimlabs.net>
parents:
5370
diff
changeset
|
11 - *prepare_hg |
5370
06b5e43ac29c
ci: print the exact version of pytype
Anton Shestakov <av6@dwimlabs.net>
parents:
5369
diff
changeset
|
12 - pytype --version |
6151 | 13 - jobs=$(python3 -c 'import multiprocessing; print(multiprocessing.cpu_count())') |
5076
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
4986
diff
changeset
|
14 - pytype -P /ci/repos/mercurial/:hgext3rd -k hgext3rd -x hgext3rd/evolve/thirdparty -j $jobs || true |
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
4986
diff
changeset
|
15 when: manual |
43b448bb1a57
heptapod-ci: add pytype job, allow it to fail for now
Anton Shestakov <av6@dwimlabs.net>
parents:
4986
diff
changeset
|
16 |
5341
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
17 variables: |
6151 | 18 PY: py3 |
19 PYTHON: python3 | |
5341
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
20 RUNTEST_ARGS: "" |
5342
4a958a7bb138
ci: set HGMODULEPOLICY when running specific variants
Anton Shestakov <av6@dwimlabs.net>
parents:
5341
diff
changeset
|
21 TEST_HGMODULEPOLICY: "allow" |
4925
dbeb04ee6679
heptapod-ci: add a --pure variant for the CI
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4924
diff
changeset
|
22 |
5341
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
23 .runtests_template: &runtests |
5677
9a16cf248b05
heptapod-ci: new address for base Docker images
Georges Racinet <georges.racinet@octobus.net>
parents:
5662
diff
changeset
|
24 image: registry.heptapod.net/mercurial/ci-images/$PY-hgext3rd |
5369
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
25 before_script: |
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
26 - (cd tests; ls -1 test-check-*.t > /tmp/check-tests.txt) |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
27 - (cd tests; ls -1 test-check-sdist.t test-doctest.py > /tmp/compat-blacklist.txt) |
4874
ab0d09c93532
gitlab-ci: be bold and try to run the full test in them
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4873
diff
changeset
|
28 script: |
5371
02804d8bac31
ci: use a script template to pull and update /ci/repos/mercurial/
Anton Shestakov <av6@dwimlabs.net>
parents:
5370
diff
changeset
|
29 - *prepare_hg |
6804
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
30 - ($PYTHON --version) |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
31 - (cd tests; set -x; HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON /ci/repos/mercurial/tests/run-tests.py --color=always $RUNTEST_ARGS) |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
32 |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
33 checks-py2: |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
34 <<: *runtests |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
35 variables: |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
36 PY: py2 |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
37 PYTHON: prlimit --nofile=1024:1024 python2 |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
38 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt" |
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
39 CI_CLEVER_CLOUD_FLAVOR: S |
5341
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
40 |
5369
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
41 checks-py3: |
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
42 <<: *runtests |
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
43 variables: |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
44 RUNTEST_ARGS: "--test-list /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt" |
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
45 CI_CLEVER_CLOUD_FLAVOR: S |
5369
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
46 |
6804
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
47 tests-py2-cext: |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
48 <<: *runtests |
5369
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
49 variables: |
6804
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
50 PY: py2 |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
51 PYTHON: prlimit --nofile=1024:1024 python2 |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
52 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt" |
6804
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
53 TEST_HGMODULEPOLICY: "c" |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
54 |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
55 tests-py2-pure: |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
56 <<: *runtests |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
57 variables: |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
58 PY: py2 |
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
59 PYTHON: prlimit --nofile=1024:1024 python2 |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
60 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt" |
6804
241c4fec9723
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
parents:
6752
diff
changeset
|
61 TEST_HGMODULEPOLICY: "py" |
5369
2295818ec738
ci: replace flake8 job by checks-py{2,3} (with more than flake8)
Anton Shestakov <av6@dwimlabs.net>
parents:
5368
diff
changeset
|
62 |
4926
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4925
diff
changeset
|
63 tests-py3-cext: |
5341
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
64 <<: *runtests |
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
65 variables: |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
66 RUNTEST_ARGS: "--no-rust --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt" |
5342
4a958a7bb138
ci: set HGMODULEPOLICY when running specific variants
Anton Shestakov <av6@dwimlabs.net>
parents:
5341
diff
changeset
|
67 TEST_HGMODULEPOLICY: "c" |
4926
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4925
diff
changeset
|
68 |
0fad1d376814
heptapod-ci: test with python3 too
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
4925
diff
changeset
|
69 tests-py3-pure: |
5341
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
70 <<: *runtests |
efb8ae4419b2
ci: use a template + variables for defining tests
Anton Shestakov <av6@dwimlabs.net>
parents:
5076
diff
changeset
|
71 variables: |
6909
701d4bb5d53c
test-compat: merge mercurial-6.2 into mercurial-6.1
Anton Shestakov <av6@dwimlabs.net>
diff
changeset
|
72 RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt --blacklist /tmp/compat-blacklist.txt" |
5342
4a958a7bb138
ci: set HGMODULEPOLICY when running specific variants
Anton Shestakov <av6@dwimlabs.net>
parents:
5341
diff
changeset
|
73 TEST_HGMODULEPOLICY: "py" |
4986
1214f3d085a9
ci: add job to build and archive the documentation
Boris Feld <boris.feld@octobus.net>
parents:
4966
diff
changeset
|
74 |
6146
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
75 .windows_runtests_template: &windows_runtests |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
76 before_script: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
77 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
78 script: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
79 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && tests/testlib/update-hg-repo.sh C:/Temp/hg' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
80 - > |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
81 C:/MinGW/msys/1.0/bin/sh.exe --login -c ' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
82 cd "$OLDPWD" && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
83 evo_branch=$(hg identify --branch) && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
84 hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$evo_branch")} && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
85 hg -R C:/Temp/hg update "$hg_branch" && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
86 hg_rev=$(hg log -R C:/Temp/hg -r . -T "\{node\}") && |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
87 echo testing with mercurial branch="$hg_branch", revision="$hg_rev"' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
88 - Invoke-Expression "$Env:PYTHON --version" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
89 - echo "$Env:RUNTEST_ARGS" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
90 - 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' |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
91 |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
92 windows-py3: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
93 <<: *windows_runtests |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
94 tags: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
95 - windows |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
96 variables: |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
97 PYTHON: py -3 |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
98 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
99 TEST_HGMODULEPOLICY: "c" |
74665d83fb3b
branching: merge stable into default
Anton Shestakov <av6@dwimlabs.net>
parents:
6141
diff
changeset
|
100 when: manual |