# The configurations you want to execute
# That is, a combination of operating system and python version
# Please add or remove for your needs.
# Check all possible values for python in here: https://docs.travis-ci.com/user/languages/python/
# See how to further configure the matrix of combinations in here: https://docs.travis-ci.com/user/multi-os/
language: python

# Uncomment if you need super powers (e.g., for apt-get)
# sudo: require

# To use other python versions in osx, set the PYTHON variable with the version supported by pyenv.
# Check available versions with `pyenv install --list'.
matrix:
    include:
        - os: linux
          python: 2.7
        - os: linux
          python: 3.3
        - os: osx
          language: generic
          env: PYTHON=2.7
        - os: osx
          language: generic
          env: PYTHON=3.3.6

# Command to install dependencies for each configuration.
before_install:
# For OSX, you may want to call a script installing virtual env and so on.
  - ./scripts/install.sh
 
install:
  - python -m pip install -U pip
  - python -m easy_install -U setuptools
  - pip install -U pytest
  - pip install sphinx
  - pip install .
  
# Command to run tests. These are run for each configuration
script: 
  - python --version
  - pytest
  - cd docs && make doctest
# The configurations you want to execute
# That is, a combination of operating system and python version
# Please add or remove for your needs.
# Check all possible values for python in here: https://docs.travis-ci.com/user/languages/python/
# See how to further configure the matrix of combinations in here: https://docs.travis-ci.com/user/multi-os/
language: python

# Uncomment if you need super powers (e.g., for apt-get)
# sudo: require

# To use other python versions in osx, set the PYTHON variable with the version supported by pyenv.
# Check available versions with `pyenv install --list'.
matrix:
    include:
        - os: linux
          python: 2.7
        - os: linux
          python: 3.3
        - os: osx
          language: generic
          env: PYTHON=2.7
        - os: osx
          language: generic
          env: PYTHON=3.3.6

# Command to install dependencies for each configuration.
before_install:
# For OSX, you may want to call a script installing virtual env and so on.
  - ./scripts/install.sh
 
install:
  - python -m pip install -U pip
  - python -m easy_install -U setuptools
  - pip install -U pytest
  - pip install sphinx
  - pip install .
  
# Command to run tests. These are run for each configuration
script: 
  - python --version
  - pytest
  - cd docs && make doctest SPHINXOPTS=-W #Make doctest treat warnings as errors, to detect problems in autodoc
Make doctest treat warnings as errors, to detect problems in autodoc
Make doctest treat warnings as errors, to detect problems in autodoc
