137 - $PYTHON -m pip install --user -U pytype==2021.04.15 |
137 - $PYTHON -m pip install --user -U pytype==2021.04.15 |
138 variables: |
138 variables: |
139 RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" |
139 RUNTEST_ARGS: " --allow-slow-tests tests/test-check-pytype.t" |
140 PYTHON: python3 |
140 PYTHON: python3 |
141 TEST_HGMODULEPOLICY: "c" |
141 TEST_HGMODULEPOLICY: "c" |
|
142 |
|
143 # `sh.exe --login` sets a couple of extra environment variables that are defined |
|
144 # in the MinGW shell, but switches CWD to /home/$username. The previous value |
|
145 # is stored in OLDPWD. Of the added variables, MSYSTEM is crucial to running |
|
146 # run-tests.py- it is needed to make run-tests.py generate a `python3` script |
|
147 # that satisfies the various shebang lines and delegates to `py -3`. |
|
148 .window_runtests_template: &windows_runtests |
|
149 stage: tests |
|
150 before_script: |
|
151 # Temporary until this is adjusted in the environment |
|
152 - $Env:TEMP="C:/Temp" |
|
153 - $Env:TMP="C:/Temp" |
|
154 # TODO: find/install cvs, bzr, perforce, gpg, sqlite3 |
|
155 |
|
156 script: |
|
157 - echo "Entering script section" |
|
158 - echo "python used, $Env:PYTHON" |
|
159 - Invoke-Expression "$Env:PYTHON -V" |
|
160 - Invoke-Expression "$Env:PYTHON -m black --version" |
|
161 - echo "$Env:RUNTEST_ARGS" |
|
162 |
|
163 - 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' |
|
164 |
|
165 windows-py3: |
|
166 <<: *windows_runtests |
|
167 when: manual |
|
168 tags: |
|
169 - windows |
|
170 timeout: 2h |
|
171 variables: |
|
172 RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" |
|
173 PYTHON: py -3 |