language: python
python:
- 2.7
- 3.7
- 3.6
- 3.5
- 3.4
- pypy
cache:
  directories:
  - ".cache/pip/"
  - "$HOME/.cache/pip"
  - docs/node_modules/
  - "$HOME/docs/node_modules"
install: "pip install -r elastic_panel/test/requirement.txt"
script: python setup.py test
sudo: false
deploy:
  provider: pypi
  server: https://pypi.python.org/pypi
  user: benos
  password:
    secure: DDlJABA1h0Y3D1d9X21CQJ75o9w0Od9jY5gfCLH6zfJFyd9CVIql6+7Emn6mVETskKQKoDBY41Jqa+vlzacYnq6rx/0W3n7A45AWFZ1Z5MWz4lpxRDiPkIH94jp4bsXCAkl8+8f+X1xeIlOVpR9siXicMy3VFdiTL/z2YgW3l4Y=
  on:
    tags: true
    branch: master
    distributions: sdist bdist_wheel
    repo: Benoss/django-elasticsearch-debug-toolbar
    condition: $TRAVIS_PYTHON_VERSION = "2.7"

language: python
dist: xenial
sudo: true

python:
- 2.7
- 3.7
- 3.6
- 3.5
- 3.4
- pypy
cache:
  directories:
  - ".cache/pip/"
  - "$HOME/.cache/pip"
  - docs/node_modules/
  - "$HOME/docs/node_modules"
install: "pip install -r elastic_panel/test/requirement.txt"
script: python setup.py test
sudo: false
deploy:
  provider: pypi
  server: https://pypi.python.org/pypi
  user: benos
  password:
    secure: DDlJABA1h0Y3D1d9X21CQJ75o9w0Od9jY5gfCLH6zfJFyd9CVIql6+7Emn6mVETskKQKoDBY41Jqa+vlzacYnq6rx/0W3n7A45AWFZ1Z5MWz4lpxRDiPkIH94jp4bsXCAkl8+8f+X1xeIlOVpR9siXicMy3VFdiTL/z2YgW3l4Y=
  on:
    tags: true
    branch: master
    distributions: sdist bdist_wheel
    repo: Benoss/django-elasticsearch-debug-toolbar
    condition: $TRAVIS_PYTHON_VERSION = "2.7"

Upgrade to 16.04 from 14.04 for python 3.7
Upgrade to 16.04 from 14.04 for python 3.7