From a5b2ed0b7924aabca9e48a140e0717d6f7afa9ac Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 10 Dec 2019 11:31:47 +0100 Subject: [PATCH] travis-ci: add Windows 32 bit --- .travis.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 46ded889..4b8fbb02 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,14 +34,26 @@ matrix: - PYTHON_BIN=python3 - os: windows language: shell # python not supported yet - name: windows + name: windows64 before_install: choco install python3 --version=3.7.5; python -m pip install --upgrade pip; python --version; pip3 --version; env: - - BUILD_TARGET=windows + - BUILD_TARGET=windows64 + - PATH=/c/Python37:/c/Python37/Scripts:$PATH + - PYTHON_BIN=python + - os: windows + language: shell # python not supported yet + name: windows32 + before_install: + choco install python3 --forcex86 --version=3.7.5; + python -m pip install --upgrade pip; + python --version; + pip3 --version; + env: + - BUILD_TARGET=windows32 - PATH=/c/Python37:/c/Python37/Scripts:$PATH - PYTHON_BIN=python install: @@ -61,11 +73,15 @@ script: delocate-wheel -w wheelhouse -v dist/*.whl; ls wheelhouse/*any.whl | sed -e 'p;s/any/macosx_10_9_x86_64/' | xargs -n2 mv; fi -- if [[ "${BUILD_TARGET}" = "windows" ]]; then +- if [[ "${BUILD_TARGET}" = "windows64" ]]; then mkdir wheelhouse; - ls dist/*any.whl | sed -e 'p;s/any/win32/' | xargs -n2 cp; ls dist/*any.whl | sed -e 'p;s/any/win_amd64/' | xargs -n2 cp; - mv dist/*win32.whl dist/*win_amd64.whl wheelhouse/; + mv dist/*.whl wheelhouse/; + fi +- if [[ "${BUILD_TARGET}" = "windows32" ]]; then + mkdir wheelhouse; + ls dist/*any.whl | sed -e 'p;s/any/win32/' | xargs -n2 cp; + mv dist/*.whl wheelhouse/; fi - if [[ ! -z "${TRAVIS_TAG}" ]]; then echo "Deploying to PyPi";