# 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

sudo: require

matrix:
    include:
        # - os: linux
        #   python: 2.7
        # - os: osx
        #   language: generic
        #   env: PYTHON=2.7
        - os: linux
          python: 3.4
        - os: osx
          language: generic
          env: PYTHON=3.4.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 pytest-cov
  - pip install coveralls
  # - pip install sphinx
  - pip install .

# Command to run tests. These are run for each configuration
script:
  - python --version
  - python tests.py # from https://github.com/bhargavvader/pycobra/
  - coverage
  # - cd docs && make html && make doctest SPHINXOPTS=-W #Make doctest treat warnings as errors, to detect problems in autodoc
after_success:
  - coveralls

# 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

sudo: require

matrix:
    include:
        # - os: linux
        #   python: 2.7
        # - os: osx
        #   language: generic
        #   env: PYTHON=2.7
        - os: linux
          python: 3.6
        # - os: osx
        #   language: generic
        #   env: PYTHON=3.4.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 pytest-cov
  - pip install coveralls
  # - pip install sphinx
  - pip install .

# Command to run tests. These are run for each configuration
script:
  - python --version
  - python tests.py # from https://github.com/bhargavvader/pycobra/
  - coverage
  # - cd docs && make html && make doctest SPHINXOPTS=-W #Make doctest treat warnings as errors, to detect problems in autodoc
after_success:
  - coveralls

Test only on linux for now
Test only on linux for now
