Added set -e to travis test script. This will allow it to exit with error code upon nosetest/pep8 failure