Skip to content

Commit 404cb23

Browse files
authored
Merge pull request #141 from mavlink/fix-win
travis-ci: add Windows 32 bit
2 parents bb9a8a7 + a5b2ed0 commit 404cb23

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.travis.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,26 @@ matrix:
3434
- PYTHON_BIN=python3
3535
- os: windows
3636
language: shell # python not supported yet
37-
name: windows
37+
name: windows64
3838
before_install:
3939
choco install python3 --version=3.7.5;
4040
python -m pip install --upgrade pip;
4141
python --version;
4242
pip3 --version;
4343
env:
44-
- BUILD_TARGET=windows
44+
- BUILD_TARGET=windows64
45+
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
46+
- PYTHON_BIN=python
47+
- os: windows
48+
language: shell # python not supported yet
49+
name: windows32
50+
before_install:
51+
choco install python3 --forcex86 --version=3.7.5;
52+
python -m pip install --upgrade pip;
53+
python --version;
54+
pip3 --version;
55+
env:
56+
- BUILD_TARGET=windows32
4557
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
4658
- PYTHON_BIN=python
4759
install:
@@ -61,11 +73,15 @@ script:
6173
delocate-wheel -w wheelhouse -v dist/*.whl;
6274
ls wheelhouse/*any.whl | sed -e 'p;s/any/macosx_10_9_x86_64/' | xargs -n2 mv;
6375
fi
64-
- if [[ "${BUILD_TARGET}" = "windows" ]]; then
76+
- if [[ "${BUILD_TARGET}" = "windows64" ]]; then
6577
mkdir wheelhouse;
66-
ls dist/*any.whl | sed -e 'p;s/any/win32/' | xargs -n2 cp;
6778
ls dist/*any.whl | sed -e 'p;s/any/win_amd64/' | xargs -n2 cp;
68-
mv dist/*win32.whl dist/*win_amd64.whl wheelhouse/;
79+
mv dist/*.whl wheelhouse/;
80+
fi
81+
- if [[ "${BUILD_TARGET}" = "windows32" ]]; then
82+
mkdir wheelhouse;
83+
ls dist/*any.whl | sed -e 'p;s/any/win32/' | xargs -n2 cp;
84+
mv dist/*.whl wheelhouse/;
6985
fi
7086
- if [[ ! -z "${TRAVIS_TAG}" ]]; then
7187
echo "Deploying to PyPi";

0 commit comments

Comments
 (0)