Skip to content

Commit

Permalink
Only enable tox-wheel when publishing its wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Jun 3, 2019
1 parent a0cabd4 commit fca7584
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,17 @@ install:
test_script:
- ps: |
Set-PSDebug -Trace 1
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox
if ($LastExitCode -eq 0) {
if ($Env:WHEEL_PATH) {
if ($Env:WHEEL_PATH) {
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox --wheel
if ($LastExitCode -eq 0) {
$ErrorActionPreference = "Stop"
iex "$Env:PYTHON_HOME\Scripts\twine check $Env:WHEEL_PATH/*.whl"
iex "$Env:PYTHON_HOME\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing $Env:WHEEL_PATH/*.whl"
}
} else {
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox
}
if ($LastExitCode -ne 0) {
Get-ChildItem Env:
Get-Content .tox\*\log\*
}
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ script:
if [[ -n ${WHEEL_MANYLINUX1:-} ]]; then
docker run --rm --user $UID -itv $(pwd):/code ionelmc/manylinux $WHEEL_MANYLINUX1
tox --installpkg $WHEEL_PATH/*.whl -v
elif [[ -n ${WHEEL_PATH:-} ]]; then
tox -v --wheel
else
tox -v
fi
Expand Down
9 changes: 6 additions & 3 deletions ci/templates/.appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,17 @@ install:
test_script:
- ps: |
Set-PSDebug -Trace 1
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox
if ($LastExitCode -eq 0) {
if ($Env:WHEEL_PATH) {
if ($Env:WHEEL_PATH) {
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox --wheel
if ($LastExitCode -eq 0) {
$ErrorActionPreference = "Stop"
iex "$Env:PYTHON_HOME\Scripts\twine check $Env:WHEEL_PATH/*.whl"
iex "$Env:PYTHON_HOME\Scripts\twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing $Env:WHEEL_PATH/*.whl"
}
} else {
cmd /E:ON /V:ON /C .\ci\appveyor-with-compiler.cmd $Env:PYTHON_HOME\Scripts\tox
}
if ($LastExitCode -ne 0) {
Get-ChildItem Env:
Get-Content .tox\*\log\*
}
Expand Down
2 changes: 2 additions & 0 deletions ci/templates/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ script:
if [[ -n ${WHEEL_MANYLINUX1:-} ]]; then
docker run --rm --user $UID -itv $(pwd):/code ionelmc/manylinux $WHEEL_MANYLINUX1
tox --installpkg $WHEEL_PATH/*.whl -v
elif [[ -n ${WHEEL_PATH:-} ]]; then
tox -v --wheel
else
tox -v
fi
Expand Down

0 comments on commit fca7584

Please sign in to comment.