File tree 2 files changed +6
-16
lines changed
2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -170,19 +170,14 @@ test_script:
170
170
on_success :
171
171
- ps : |
172
172
Set-PSDebug -Trace 1
173
+ $ErrorActionPreference = "Stop"
173
174
if ($Env:WHEEL_PATH) {
174
175
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox --wheel
175
- if ($LastExitCode -eq 0) {
176
- $ErrorActionPreference = "Stop"
177
- iex "$Env:PYTHON_HOME\Scripts\twine check $Env:WHEEL_PATH/*.whl"
178
- iex "$Env:PYTHON_HOME\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing $Env:WHEEL_PATH/*.whl"
179
- }
176
+ iex "$Env:PYTHON_HOME\Scripts\twine check $Env:WHEEL_PATH/*.whl"
177
+ iex "$Env:PYTHON_HOME\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing $Env:WHEEL_PATH/*.whl"
180
178
} else {
181
179
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox
182
180
}
183
- if ($LastExitCode -ne 0) {
184
- throw "Failed with exit code: $LastExitCode"
185
- }
186
181
on_failure :
187
182
- ps : dir "env:"
188
183
- ps : get-content .tox\*\log\*
Original file line number Diff line number Diff line change @@ -58,19 +58,14 @@ test_script:
58
58
on_success :
59
59
- ps : |
60
60
Set-PSDebug -Trace 1
61
+ $ErrorActionPreference = "Stop"
61
62
if ($Env:WHEEL_PATH) {
62
63
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox --wheel
63
- if ($LastExitCode -eq 0) {
64
- $ErrorActionPreference = "Stop"
65
- iex "$Env:PYTHON_HOME\Scripts\twine check $Env:WHEEL_PATH/*.whl"
66
- iex "$Env:PYTHON_HOME\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing $Env:WHEEL_PATH/*.whl"
67
- }
64
+ iex "$Env:PYTHON_HOME\Scripts\twine check $Env:WHEEL_PATH/*.whl"
65
+ iex "$Env:PYTHON_HOME\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing $Env:WHEEL_PATH/*.whl"
68
66
} else {
69
67
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox
70
68
}
71
- if ($LastExitCode -ne 0) {
72
- throw "Failed with exit code: $LastExitCode"
73
- }
74
69
on_failure :
75
70
- ps : dir "env:"
76
71
- ps : get-content .tox\*\log\*
You can’t perform that action at this time.
0 commit comments