language: python
python:
  # These versions are semi-arbitrary. We have no need right now for two Python
  # versions. They are the latest versions for the two languages (Python 2 and
  # Python 3)
  - "2.7"
  - "3.5"
install:
  - "pip install -e .[dev]"
before_script:
  # Run various code analysis tools, for linting and correctness:
  - "flake8 ."
  # Style check the documentation:
  - "doc8 docs/"
script:
  # Run all discoverable tests, but set the source directory so that the coverage tool knows not to include coverage for all dependencies.
  - "coverage run --source=authentication -m unittest discover"
after_success:
  # Sends the coverage report to coveralls.io which can report to Pull Requests
  # and track test coverage over time.
  - "coveralls"
# Cache pip dependencies.
# See http://docs.travis-ci.com/user/caching/#pip-cache.
cache:
  directories:
    - $HOME/.cache/pip

language: python
python:
  # These versions are semi-arbitrary. We have no need right now for two Python
  # versions. They are the latest versions for the two languages (Python 2 and
  # Python 3)
  - "2.7"
  - "3.5"
install:
  - "pip install -e .[dev]"
before_script:
  # Run various code analysis tools, for linting and correctness:
  - "flake8 ."
  # Style check the documentation:
  - "doc8 docs/"
script:
  # Build documentation HTML
  - sphinx-build -W -v docs/source/ html
  # Run all discoverable tests, but set the source directory so that the coverage tool knows not to include coverage for all dependencies.
  - "coverage run --source=authentication -m unittest discover"
after_success:
  # Sends the coverage report to coveralls.io which can report to Pull Requests
  # and track test coverage over time.
  - "coveralls"
# Cache pip dependencies.
# See http://docs.travis-ci.com/user/caching/#pip-cache.
cache:
  directories:
    - $HOME/.cache/pip

Build docs HTML from Travis
Build docs HTML from Travis
