Permalink
Browse files

Tox tests + importlib dep in py26

  • Loading branch information...
1 parent d36c3f6 commit 847a70066724053c2cf83ae5c5ae93cbcb23d111 @tgalal committed Mar 30, 2016
Showing with 51 additions and 9 deletions.
  1. +31 −9 .travis.yml
  2. +4 −0 setup.py
  3. +16 −0 tox.ini
View
@@ -1,17 +1,39 @@
language: python
-python:
- - "2.6"
- - "2.7"
- - "3.2"
- - "3.3"
- - "3.4"
+python: '3.5'
# command to install dependencies
+
+env:
+ global:
+ - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
+ - SEGFAULT_SIGNALS=all
+ matrix:
+ - TOXENV=py26
+ - TOXENV=py27
+ - TOXENV=py33
+ - TOXENV=py34
+ - TOXENV=py35
+before_install:
+ - python --version
+ - uname -a
+ - lsb_release -a
install:
- - python setup.py install
+ - pip install tox
+ - virtualenv --version
+ - easy_install --version
+ - pip --version
+ - tox --version
# command to run tests
-script: nosetests
+script:
+ - tox -v
+after_failure:
+ - more .tox/log/* | cat
+ - more .tox/*/log/* | cat
+before_cache:
+ - rm -rf $HOME/.cache/pip/log
+cache:
+ directories:
+ - $HOME/.cache/pip
branches:
only:
- master
- develop
- - uniform_xml
View
@@ -3,9 +3,13 @@
from setuptools import setup, find_packages
import yowsup
import platform
+import sys
deps = ['python-dateutil', 'argparse', 'python-axolotl>=0.1.7']
+if sys.version_info < (2,7):
+ deps += ['importlib']
+
if platform.system().lower() == "windows":
deps.append('pyreadline')
else:
View
@@ -0,0 +1,16 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+skip_missing_interpreters = true
+envlist = py26, py27, py32, py33, py34, py35
+
+[testenv]
+commands = nosetests yowsup
+deps =
+ py26: importlib
+ nose
+ python-dateutil
+ python-axolotl

0 comments on commit 847a700

Please sign in to comment.