Skip to content

Commit 3f8b9b5

Browse files
committed
add 32bit test
1 parent 5a75633 commit 3f8b9b5

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.travis.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: python
2-
cache: pip
2+
cache:
3+
- pip
4+
- ccache
35
os:
46
- linux
57
python:
@@ -32,6 +34,21 @@ matrix:
3234
script:
3335
- flake8 .
3436

37+
- stage: test
38+
dist: bionic
39+
env: C_COMPILER=i686-linux-gnu-gcc CFLAGS=-m32
40+
addons:
41+
apt:
42+
packages:
43+
- gcc-i686-linux-gnu
44+
before_install:
45+
- |
46+
sudo dpkg --add-architecture i386 && sudo apt update \
47+
&& sudo apt install -y python3.7:i386 python3.7-minimal:i386 python3.7-dev:i386 python3-pip liblzo2-dev:i386
48+
- |
49+
export PYTHON=python3.7 && sudo -H $PYTHON -m pip install -U pip \
50+
&& sudo -H $PYTHON -m pip install wheel virtualenv setuptools
51+
- $PYTHON -m virtualenv ${HOME}/.env && source ${HOME}/.env/bin/activate
3552
- stage: deploy
3653
python: '3.5'
3754
services:
@@ -65,9 +82,10 @@ addons:
6582
- liblzo2-dev
6683

6784
install:
85+
- if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi
6886
- $PYTHON -m pip install Cython nose numpy python-lzo six
6987
- $PYTHON setup.py build_ext --inplace
7088
- $PYTHON setup.py install
7189

7290
script:
73-
- nosetests
91+
- $PYTHON -m nose

0 commit comments

Comments
 (0)