[Commented On] D11025: ci-windows: introduce manual windows CI
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Sat Jul 10 02:27:00 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 29091.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11025?vs=29031&id=29091
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11025/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11025
AFFECTED FILES
contrib/heptapod-ci.yml
CHANGE DETAILS
diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -139,3 +139,35 @@
RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t"
PYTHON: python3
TEST_HGMODULEPOLICY: "c"
+
+# `sh.exe --login` sets a couple of extra environment variables that are defined
+# in the MinGW shell, but switches CWD to /home/$username. The previous value
+# is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running
+# run-tests.py- it is needed to make run-tests.py generate a `python3` script
+# that satisfies the various shebang lines and delegates to `py -3`.
+.window_runtests_template: &windows_runtests
+ stage: tests
+ before_script:
+ # Temporary until this is adjusted in the environment
+ - $Env:TEMP="C:/Temp"
+ - $Env:TMP="C:/Temp"
+ # TODO: find/install cvs, bzr, perforce, gpg, sqlite3
+
+ script:
+ - echo "Entering script section"
+ - echo "python used, $Env:PYTHON"
+ - Invoke-Expression "$Env:PYTHON -V"
+ - Invoke-Expression "$Env:PYTHON -m black --version"
+ - echo "$Env:RUNTEST_ARGS"
+
+ - 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'
+
+windows-py3:
+ <<: *windows_runtests
+ when: manual
+ tags:
+ - windows
+ timeout: 2h
+ variables:
+ RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt"
+ PYTHON: py -3
To: Alphare, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210710/cb889dbc/attachment-0002.html>
More information about the Mercurial-patches
mailing list