Skip to content

Commit

Permalink
Merge pull request #141 from mavlink/fix-win
Browse files Browse the repository at this point in the history
travis-ci: add Windows 32 bit
  • Loading branch information
julianoes authored Dec 10, 2019
2 parents bb9a8a7 + a5b2ed0 commit 404cb23
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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";
Expand Down

0 comments on commit 404cb23

Please sign in to comment.