Refactor Travis testing inspired by django-travis-demo