File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ python:
1010sudo : false
1111env :
1212 - CASS_DRIVER_NO_CYTHON=1
13- -
1413
1514addons :
1615 apt :
Original file line number Diff line number Diff line change @@ -103,6 +103,15 @@ build:
103103 python setup.py build_ext --inplace --no-cython
104104 fi
105105
106+ # Run the unit tests, this is not done in travis because
107+ # it takes too much time for the whole matrix to build with cython
108+ if [[ $CYTHON == 'CYTHON' ]]; then
109+ EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=1 nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/unit/ || true
110+ MONKEY_PATCH_LOOP=1 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=1 nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/unit/io/test_eventletreactor.py || true
111+ MONKEY_PATCH_LOOP=1 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=1 nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/unit/io/test_geventreactor.py || true
112+
113+ fi
114+
106115 echo "Running with event loop manager: $EVENT_LOOP_MANAGER"
107116 echo "==========RUNNING CQLENGINE TESTS=========="
108117 EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=cqle_results.xml tests/integration/cqlengine/ || true
You can’t perform that action at this time.
0 commit comments