language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7-dev"
sudo: false
addons:
  apt:
    packages:
    - graphviz
install:
- pip install sphinx coveralls
- pip install graphviz matplotlib
script:
- coverage run "--include=ActionTree/*" setup.py test
- if [ "v$TRAVIS_PYTHON_VERSION" == "v2.7" ];
    then python setup.py build_sphinx --builder=doctest;
  fi
after_success:
- coveralls
deploy:
  provider: pypi
  user: jacquev6
  password:
    secure: d3UoCrv3O53EeMhnhcfplSzc6R3aQqWES7d6gMwfeHlVib+k0GWKCMJqwKhrgMiqWxzW/DhK2t0fckwHgId2Fr6NyUZnIIto8X2wbQtbIIxV033y1DsVJgmEi2UjyJ5E7uI8+cnFLa8p7YgPXNt0cKajxHXSfBJY492nlQL1YRc=
  on:
    tags: true
    repo: jacquev6/ActionTree
    python: 2.7

language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7-dev"
sudo: false
addons:
  apt:
    packages:
    - graphviz
install:
- pip install sphinx coveralls
- pip install graphviz matplotlib
- if [ "v$TRAVIS_PYTHON_VERSION" == "v2.7" ];
    pip install futures mock;
  fi
script:
- coverage run "--include=ActionTree/*" setup.py test
- if [ "v$TRAVIS_PYTHON_VERSION" == "v2.7" ];
    then python setup.py build_sphinx --builder=doctest;
  fi
after_success:
- coveralls
deploy:
  provider: pypi
  user: jacquev6
  password:
    secure: d3UoCrv3O53EeMhnhcfplSzc6R3aQqWES7d6gMwfeHlVib+k0GWKCMJqwKhrgMiqWxzW/DhK2t0fckwHgId2Fr6NyUZnIIto8X2wbQtbIIxV033y1DsVJgmEi2UjyJ5E7uI8+cnFLa8p7YgPXNt0cKajxHXSfBJY492nlQL1YRc=
  on:
    tags: true
    repo: jacquev6/ActionTree
    python: 2.7

Install futures and mock on Travis for Python 2
Install futures and mock on Travis for Python 2
