File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 11language : python
2- cache : pip
2+ cache :
3+ - pip
4+ - ccache
35os :
46 - linux
57python :
@@ -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
6784install :
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
7290script :
73- - nosetests
91+ - $PYTHON -m nose
You can’t perform that action at this time.
0 commit comments