language: python
script:
  - tox
before_install:
  - openssl version
cache:
  directories:
  - ${HOME}/.cache
install:
  - pip install tox==2.1.1
  - if [[ "${TOXENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
      python _travis/fetch_gae_sdk.py ;
    fi
notifications:
  email: false
env:
  global:
    - GAE_PYTHONPATH=${HOME}/.cache/google_appengine
    - PYTHONWARNINGS=always::DeprecationWarning
  matrix:
    - TOXENV=flake8-py3
    - TOXENV=py26
    - TOXENV=py27
    - TOXENV=py33
    - TOXENV=py34
    - TOXENV=gae
# https://github.com/travis-ci/travis-ci/issues/4794
matrix:
  include:
    - python: 3.5
      env: TOXENV=py35
    - python: pypy-5.3
      env: TOXENV=pypy
sudo: false

language: python
script:
  - tox
before_install:
  - openssl version
cache:
  directories:
  - ${HOME}/.cache
install:
  - pip install tox==2.1.1
  - if [[ "${TOXENV}" == "gae" && ! -d ${GAE_PYTHONPATH} ]]; then
      python _travis/fetch_gae_sdk.py ;
    fi
notifications:
  email: false
env:
  global:
    - GAE_PYTHONPATH=${HOME}/.cache/google_appengine
    - PYTHONWARNINGS=always::DeprecationWarning
  matrix:
    - TOXENV=flake8-py3
    - TOXENV=py26
    - TOXENV=py27
    - TOXENV=py33
    - TOXENV=py34
    - TOXENV=gae
# https://github.com/travis-ci/travis-ci/issues/4794
matrix:
  include:
    - python: 3.5
      env: TOXENV=py35
    - python: pypy-5.3
      env: TOXENV=pypy
  allow_failures:
  - python: pypy-5.3
sudo: false

Allow PyPy 5.3 to fail
Allow PyPy 5.3 to fail

Since it's addition, our Travis builds have become very unstable and
this job seems to be implicated in most of those builds. Until we can
stabilize this particular build job, let's allow it to fail to avoid
having to continuously retry the build on Travis.
