# HG changeset patch # User Anton Shestakov # Date 1637246448 -10800 # Node ID ff19717f985efccf081ffe82e2d2f7a8d2c6029d # Parent cf2b582c1764cca4d3a1287ba8678b740c84f70b ci: add windows-py3 tests diff -r cf2b582c1764 -r ff19717f985e .gitlab-ci.yml --- a/.gitlab-ci.yml Wed Nov 24 22:23:45 2021 +0300 +++ b/.gitlab-ci.yml Thu Nov 18 17:40:48 2021 +0300 @@ -93,3 +93,29 @@ - dist/* only: - tags + +.windows_runtests_template: &windows_runtests + before_script: + - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.t > C:/Temp/check-tests.txt' + script: + - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && contrib/update-hg-repo.sh C:/Temp/hg' + - > + C:/MinGW/msys/1.0/bin/sh.exe --login -c ' + cd "$OLDPWD" && + evo_branch=$(hg identify --branch) && + hg_branch=${HG_BRANCH:-$(tests/testlib/map-hg-rev.sh "$evo_branch")} && + hg -R C:/Temp/hg update "$hg_branch" && + hg_rev=$(hg log -R C:/Temp/hg -r . -T "\{node\}") && + echo testing with mercurial branch="$hg_branch", revision="$hg_rev"' + - Invoke-Expression "$Env:PYTHON --version" + - echo "$Env:RUNTEST_ARGS" + - 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' + +windows-py3: + <<: *windows_runtests + tags: + - windows + variables: + PYTHON: py -3 + RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt" + TEST_HGMODULEPOLICY: "c" diff -r cf2b582c1764 -r ff19717f985e contrib/update-hg-repo.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/update-hg-repo.sh Thu Nov 18 17:40:48 2021 +0300 @@ -0,0 +1,8 @@ +#!/bin/sh + +if hg root -R "$1"; then + hg pull -R "$1" +else + rm -rf "$1" + hg clone https://mirror.octobus.net/hg "$1" +fi