Mercurial > hg
comparison contrib/heptapod-ci.yml @ 47570:bc01b8ad6134
ci-windows: introduce manual windows CI
Note: most of the foundational work of this commit was done by Matt Harbison,
but enough has changed that I don't feel comfortable sending this patch as his.
In our quest to remove Python 2 from Mercurial, we need to get Windows CI going
to check that Python 3 support is up to an acceptable standard.
This is the first step: adding a manual step to run a full Windows CI, with a
certain definition of "full" since some things are not installed yet, like SVN.
Differential Revision: https://phab.mercurial-scm.org/D11025
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 08 Jul 2021 17:13:18 +0200 |
parents | e917fa36fb58 |
children | b41b4c1c644f |
comparison
equal
deleted
inserted
replaced
47569:7a4ba68f2373 | 47570:bc01b8ad6134 |
---|---|
137 - $PYTHON -m pip install --user -U pytype==2021.04.15 | 137 - $PYTHON -m pip install --user -U pytype==2021.04.15 |
138 variables: | 138 variables: |
139 RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" | 139 RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" |
140 PYTHON: python3 | 140 PYTHON: python3 |
141 TEST_HGMODULEPOLICY: "c" | 141 TEST_HGMODULEPOLICY: "c" |
142 | |
143 # `sh.exe --login` sets a couple of extra environment variables that are defined | |
144 # in the MinGW shell, but switches CWD to /home/$username. The previous value | |
145 # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running | |
146 # run-tests.py- it is needed to make run-tests.py generate a `python3` script | |
147 # that satisfies the various shebang lines and delegates to `py -3`. | |
148 .window_runtests_template: &windows_runtests | |
149 stage: tests | |
150 before_script: | |
151 # Temporary until this is adjusted in the environment | |
152 - $Env:TEMP="C:/Temp" | |
153 - $Env:TMP="C:/Temp" | |
154 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3 | |
155 | |
156 script: | |
157 - echo "Entering script section" | |
158 - echo "python used, $Env:PYTHON" | |
159 - Invoke-Expression "$Env:PYTHON -V" | |
160 - Invoke-Expression "$Env:PYTHON -m black --version" | |
161 - echo "$Env:RUNTEST_ARGS" | |
162 | |
163 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" $PYTHON tests/run-tests.py --color=always $RUNTEST_ARGS' | |
164 | |
165 windows-py3: | |
166 <<: *windows_runtests | |
167 when: manual | |
168 tags: | |
169 - windows | |
170 timeout: 2h | |
171 variables: | |
172 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" | |
173 PYTHON: py -3 |