Show More
@@ -22,7 +22,7 b' workflow:' | |||||
22 | stages: |
|
22 | stages: | |
23 | - tests |
|
23 | - tests | |
24 |
|
24 | |||
25 | image: registry.heptapod.net/mercurial/ci-images/mercurial-core:$HG_CI_IMAGE_TAG |
|
25 | image: registry.heptapod.net/mercurial/ci-images/mercurial-core@sha256:16720f3e2ba29408f816b87407841d77a01ea6e9fe29894181cea6513cc8bfec | |
26 |
|
26 | |||
27 | variables: |
|
27 | variables: | |
28 | PYTHON: python |
|
28 | PYTHON: python | |
@@ -39,6 +39,8 b' variables:' | |||||
39 | # The runner made a clone as root. |
|
39 | # The runner made a clone as root. | |
40 | # We make a new clone owned by user used to run the step. |
|
40 | # We make a new clone owned by user used to run the step. | |
41 | before_script: |
|
41 | before_script: | |
|
42 | - whoami | |||
|
43 | - pyenv shell 3.7.17 | |||
42 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
44 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no | |
43 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
45 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | |
44 | - cd /tmp/mercurial-ci/ |
|
46 | - cd /tmp/mercurial-ci/ | |
@@ -55,7 +57,7 b' checks:' | |||||
55 | <<: *runtests |
|
57 | <<: *runtests | |
56 | variables: |
|
58 | variables: | |
57 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" |
|
59 | RUNTEST_ARGS: "--time --test-list /tmp/check-tests.txt" | |
58 |
PYTHON: python |
|
60 | PYTHON: python | |
59 | CI_CLEVER_CLOUD_FLAVOR: S |
|
61 | CI_CLEVER_CLOUD_FLAVOR: S | |
60 |
|
62 | |||
61 | rust-cargo-test: |
|
63 | rust-cargo-test: | |
@@ -63,17 +65,18 b' rust-cargo-test:' | |||||
63 | stage: tests |
|
65 | stage: tests | |
64 | script: |
|
66 | script: | |
65 | - echo "python used, $PYTHON" |
|
67 | - echo "python used, $PYTHON" | |
|
68 | - $PYTHON --version | |||
66 | - make rust-tests |
|
69 | - make rust-tests | |
67 | - make cargo-clippy |
|
70 | - make cargo-clippy | |
68 | variables: |
|
71 | variables: | |
69 |
PYTHON: python |
|
72 | PYTHON: python | |
70 | CI_CLEVER_CLOUD_FLAVOR: S |
|
73 | CI_CLEVER_CLOUD_FLAVOR: S | |
71 |
|
74 | |||
72 | test-c: |
|
75 | test-c: | |
73 | <<: *runtests |
|
76 | <<: *runtests | |
74 | variables: |
|
77 | variables: | |
75 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
78 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
76 |
PYTHON: python |
|
79 | PYTHON: python | |
77 | TEST_HGMODULEPOLICY: "c" |
|
80 | TEST_HGMODULEPOLICY: "c" | |
78 | TEST_HGTESTS_ALLOW_NETIO: "1" |
|
81 | TEST_HGTESTS_ALLOW_NETIO: "1" | |
79 |
|
82 | |||
@@ -81,7 +84,7 b' test-pure:' | |||||
81 | <<: *runtests |
|
84 | <<: *runtests | |
82 | variables: |
|
85 | variables: | |
83 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" |
|
86 | RUNTEST_ARGS: "--pure --blacklist /tmp/check-tests.txt" | |
84 |
PYTHON: python |
|
87 | PYTHON: python | |
85 | TEST_HGMODULEPOLICY: "py" |
|
88 | TEST_HGMODULEPOLICY: "py" | |
86 |
|
89 | |||
87 | test-rust: |
|
90 | test-rust: | |
@@ -89,7 +92,7 b' test-rust:' | |||||
89 | variables: |
|
92 | variables: | |
90 | HGWITHRUSTEXT: cpython |
|
93 | HGWITHRUSTEXT: cpython | |
91 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" |
|
94 | RUNTEST_ARGS: "--rust --blacklist /tmp/check-tests.txt" | |
92 |
PYTHON: python |
|
95 | PYTHON: python | |
93 | TEST_HGMODULEPOLICY: "rust+c" |
|
96 | TEST_HGMODULEPOLICY: "rust+c" | |
94 |
|
97 | |||
95 | test-rhg: |
|
98 | test-rhg: | |
@@ -97,19 +100,20 b' test-rhg:' | |||||
97 | variables: |
|
100 | variables: | |
98 | HGWITHRUSTEXT: cpython |
|
101 | HGWITHRUSTEXT: cpython | |
99 | RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt" |
|
102 | RUNTEST_ARGS: "--rust --rhg --blacklist /tmp/check-tests.txt" | |
100 |
PYTHON: python |
|
103 | PYTHON: python | |
101 | TEST_HGMODULEPOLICY: "rust+c" |
|
104 | TEST_HGMODULEPOLICY: "rust+c" | |
102 |
|
105 | |||
103 | test-chg: |
|
106 | test-chg: | |
104 | <<: *runtests |
|
107 | <<: *runtests | |
105 | variables: |
|
108 | variables: | |
106 |
PYTHON: python |
|
109 | PYTHON: python | |
107 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" |
|
110 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt --chg" | |
108 | TEST_HGMODULEPOLICY: "c" |
|
111 | TEST_HGMODULEPOLICY: "c" | |
109 |
|
112 | |||
110 | check-pytype: |
|
113 | check-pytype: | |
111 | extends: .runtests_template |
|
114 | extends: .runtests_template | |
112 | before_script: |
|
115 | before_script: | |
|
116 | - pyenv shell 3.7.17 | |||
113 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no |
|
117 | - hg clone . /tmp/mercurial-ci/ --noupdate --config phases.publish=no | |
114 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` |
|
118 | - hg -R /tmp/mercurial-ci/ update `hg log --rev '.' --template '{node}'` | |
115 | - cd /tmp/mercurial-ci/ |
|
119 | - cd /tmp/mercurial-ci/ | |
@@ -120,7 +124,7 b' check-pytype:' | |||||
120 | - echo "Entering script section" |
|
124 | - echo "Entering script section" | |
121 | - sh contrib/check-pytype.sh |
|
125 | - sh contrib/check-pytype.sh | |
122 | variables: |
|
126 | variables: | |
123 |
PYTHON: python |
|
127 | PYTHON: python | |
124 |
|
128 | |||
125 | # `sh.exe --login` sets a couple of extra environment variables that are defined |
|
129 | # `sh.exe --login` sets a couple of extra environment variables that are defined | |
126 | # in the MinGW shell, but switches CWD to /home/$username. The previous value |
|
130 | # in the MinGW shell, but switches CWD to /home/$username. The previous value |
General Comments 0
You need to be logged in to leave comments.
Login now