Make Travis fail the build immediately in some cases

Travis will fail the build if:

  - flake8 doesn't exit with 0
  - unit tests don't pass
  - documentation fails to build