ci: hook network-io tests into the pipeline
This runs the "pip install" tests once for Python 2 and 3 each.
Differential Revision: https://phab.mercurial-scm.org/D10075
--- a/contrib/heptapod-ci.yml Fri Mar 12 13:13:13 2021 -0500
+++ b/contrib/heptapod-ci.yml Thu Feb 25 20:57:11 2021 +0100
@@ -8,6 +8,7 @@
PYTHON: python
TEST_HGMODULEPOLICY: "allow"
HG_CI_IMAGE_TAG: "latest"
+ TEST_HGTESTS_ALLOW_NETIO: "0"
.runtests_template: &runtests
stage: tests
@@ -23,7 +24,7 @@
script:
- echo "python used, $PYTHON"
- echo "$RUNTEST_ARGS"
- - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
+ - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
.rust_template: &rust
@@ -69,6 +70,7 @@
variables:
RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
TEST_HGMODULEPOLICY: "c"
+ TEST_HGTESTS_ALLOW_NETIO: "1"
test-py3:
<<: *runtests
@@ -76,6 +78,7 @@
RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt"
PYTHON: python3
TEST_HGMODULEPOLICY: "c"
+ TEST_HGTESTS_ALLOW_NETIO: "1"
test-py2-pure:
<<: *runtests