language: python

sudo: false

python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"

env:
  - SPHINX=1.3.6
  - SPHINX=1.4.9
  - SPHINX=1.5.3

notifications:
    email: false
    irc: "irc.iiens.net#Clicky"

branches:
  only:
    - master

install:
  - "pip install sphinx-testing" # required for tests
  - "pip install Sphinx==$SPHINX"
  - "pip install ."
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install coveralls check-manifest flake8; fi"

script:
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then check-manifest; fi"
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8; fi"
  - "pushd test"
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage run --source=sphinxcontrib.varlinks `type -p nosetests`; fi"
  - "if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then nosetests; fi"
  - "popd"

after_success:
  - "pushd test"
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coveralls; fi"
  - "popd"


language: python

sudo: false

python:
  - 2.7
  - 3.3
  - 3.4
  - 3.5
  - 3.6

env:
  - SPHINX=1.3.6
  - SPHINX=1.4.9
  - SPHINX=1.5.3

notifications:
    email: false
    irc: "irc.iiens.net#Clicky"

branches:
  only:
    - master

install:
  - "pip install sphinx-testing" # required for tests
  - "pip install Sphinx==$SPHINX"
  - "pip install ."
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install coveralls check-manifest flake8; fi"

script:
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then check-manifest; fi"
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then flake8; fi"
  - "pushd test"
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coverage run --source=sphinxcontrib.varlinks `type -p nosetests`; fi"
  - "if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then nosetests; fi"
  - "popd"

after_success:
  - "pushd test"
  - "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then coveralls; fi"
  - "popd"


Test on CPython 3.6 too
Test on CPython 3.6 too
