Use tox on travis-ci to simplify testing logic.