Mercurial > evolve
changeset 6097:ff19717f985e
ci: add windows-py3 tests
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 18 Nov 2021 17:40:48 +0300 |
parents | cf2b582c1764 |
children | 442771901e01 |
files | .gitlab-ci.yml contrib/update-hg-repo.sh |
diffstat | 2 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"