language: python
python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "pypy"

branches:
  only:
    - master

install:
  - |
      if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
        export PYENV_ROOT="$HOME/.pyenv"
        if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
          pushd "$PYENV_ROOT" && git pull && popd
        else
          rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
        fi
        export PYPY_VERSION="4.0.1"
        "$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
        virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
        source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
      fi
  - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then travis_retry pip install aiohttp; fi
  - travis_retry pip install coveralls
  - travis_retry pip install coverage
  - travis_retry pip install nose
  - travis_retry pip install .

cache:
  directories:
    - $HOME/.cache/pip
    - $HOME/.pyenv

script:
  - nosetests --with-coverage

after_success:
  - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then coveralls; fi

language: python
python:
  - "2.7"
  - "3.5"
  - "pypy"

branches:
  only:
    - master

install:
  - |
      if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
        export PYENV_ROOT="$HOME/.pyenv"
        if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
          pushd "$PYENV_ROOT" && git pull && popd
        else
          rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
        fi
        export PYPY_VERSION="4.0.1"
        "$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
        virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
        source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
      fi
  - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then travis_retry pip install aiohttp; fi
  - travis_retry pip install coveralls
  - travis_retry pip install coverage
  - travis_retry pip install nose
  - travis_retry pip install .

cache:
  directories:
    - $HOME/.cache/pip
    - $HOME/.pyenv

script:
  - nosetests --with-coverage

after_success:
  - if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then coveralls; fi

Remove unnecessary python 3.4 testing from Travis
Remove unnecessary python 3.4 testing from Travis
