language: python
python:
  - 2.7
  - 3.5
sudo: false
env:
  - DJANGO_VERSION=1.7.10
  - DJANGO_VERSION=1.8.9
  - DJANGO_VERSION=1.9.2
install:
  # Install dependencies only for Py27. For Py3 we can currently only
  # guarantee that the package is installable without fetching the deps.
  # We need to keep this until selenium2library becomes Py3 compatible.
  - if [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then pip install -r requirements.txt; fi
  - pip install . --no-dependencies
  - pip install -q flake8
  - pip install -q  --pre Django==$DJANGO_VERSION
#  - python setup.py install
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
script:
  - flake8 .
  # Run tests for Py27 only. See comment above.
  - if [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then pybot DjangoLibrary/tests/; fi
after_script:
  - firefox --version

language: python
python:
  - 2.7
  - 3.5
sudo: false
env:
  - DJANGO_VERSION=1.7.11
  - DJANGO_VERSION=1.8.11
  - DJANGO_VERSION=1.9.4
install:
  # Install dependencies only for Py27. For Py3 we can currently only
  # guarantee that the package is installable without fetching the deps.
  # We need to keep this until selenium2library becomes Py3 compatible.
  - if [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then pip install -r requirements.txt; fi
  - pip install . --no-dependencies
  - pip install -q flake8
  - pip install -q  --pre Django==$DJANGO_VERSION
#  - python setup.py install
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
script:
  - flake8 .
  # Run tests for Py27 only. See comment above.
  - if [ $TRAVIS_PYTHON_VERSION == 2.7 ]; then pybot DjangoLibrary/tests/; fi
after_script:
  - firefox --version

Upgrade to latests Django versions.
Upgrade to latests Django versions.
