comparison contrib/heptapod-ci.yml @ 47806:d5d46dcd356b stable

windows-ci: clean up the Heptapod CI file now that the baseline is solid Enough work has been done one the CI side, this now works with little effort on our side. The next patch will remove the manual switch. Differential Revision: https://phab.mercurial-scm.org/D11254
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 23 Jul 2021 10:45:08 +0200
parents 6c86f96042c9
children 6ec897345b87
comparison
equal deleted inserted replaced
47805:8892f604e242 47806:d5d46dcd356b
145 # run-tests.py- it is needed to make run-tests.py generate a `python3` script 145 # run-tests.py- it is needed to make run-tests.py generate a `python3` script
146 # that satisfies the various shebang lines and delegates to `py -3`. 146 # that satisfies the various shebang lines and delegates to `py -3`.
147 .window_runtests_template: &windows_runtests 147 .window_runtests_template: &windows_runtests
148 stage: tests 148 stage: tests
149 before_script: 149 before_script:
150 # Temporary until this is adjusted in the environment 150 - C:/MinGW/msys/1.0/bin/sh.exe --login -c 'cd "$OLDPWD" && ls -1 tests/test-check-*.* > C:/Temp/check-tests.txt'
151 - $Env:TEMP="C:/Temp"
152 - $Env:TMP="C:/Temp"
153 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3 151 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3
154 152
155 script: 153 script:
156 - echo "Entering script section" 154 - echo "Entering script section"
157 - echo "python used, $Env:PYTHON" 155 - echo "python used, $Env:PYTHON"
158 - Invoke-Expression "$Env:PYTHON -V" 156 - Invoke-Expression "$Env:PYTHON -V"
159 - Invoke-Expression "$Env:PYTHON -m black --version" 157 - Invoke-Expression "$Env:PYTHON -m black --version"
160 - echo "$Env:RUNTEST_ARGS" 158 - echo "$Env:RUNTEST_ARGS"
159 - echo "$Env:TMP"
160 - echo "$Env:TEMP"
161 161
162 - 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' 162 - 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'
163 163
164 windows-py3: 164 windows-py3:
165 <<: *windows_runtests 165 <<: *windows_runtests
166 when: manual 166 when: manual
167 tags: 167 tags:
168 - windows 168 - windows
169 timeout: 2h
170 variables: 169 variables:
171 TEST_HGMODULEPOLICY: "c" 170 TEST_HGMODULEPOLICY: "c"
172 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" 171 RUNTEST_ARGS: "--blacklist C:/Temp/check-tests.txt"
173 PYTHON: py -3 172 PYTHON: py -3