---

env:
  global:
    - DJANGO_SETTINGS_MODULE=TWLight.settings.local
    - PIP_USE_MIRRORS=true
    - TWLIGHT_UNIXNAME=travis
    - TWLIGHT_MISSING_MIGRATIONS=$(git ls-files --others --exclude-standard 'TWLight/*/migrations/*.py' | wc -l)
    - DJANGO_DB_HOST=127.0.0.1
    - MYSQL_USER=twlight
    - MYSQL_PASSWORD=twlight
    - ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
    - REQUEST_BASE_URL=http://localhost/
    - TWLIGHT_OAUTH_PROVIDER_URL=https://meta.wikimedia.org/w/index.php
    - DEBUG = False
    - SECRET_KEY=twlight

language: python

cache: pip

python:
  - 2.7

addons:
  mariadb: '10.2'

services:
  - mysql

before_install:

# Install the dependencies.
install:
  - pip install -r requirements/wmf.txt
  - pip install coveralls

# Initalize the app and test it.
script:
  - .travis/./init.sh
  - coverage run --source TWLight manage.py test

# Report on test coverage and push to production if the conditions are met.
after_success:
  - coveralls
  - .travis/./deploy.sh

---

env:
  global:
    - DJANGO_SETTINGS_MODULE=TWLight.settings.local
    - PIP_USE_MIRRORS=true
    - TWLIGHT_UNIXNAME=travis
    - TWLIGHT_MISSING_MIGRATIONS=$(git ls-files --others --exclude-standard 'TWLight/*/migrations/*.py' | wc -l)
    - DJANGO_DB_HOST=127.0.0.1
    - DJANGO_DB_NAME=twlight
    - MYSQL_USER=twlight
    - MYSQL_PASSWORD=twlight
    - ALLOWED_HOSTS=localhost 127.0.0.1 [::1]
    - REQUEST_BASE_URL=http://localhost/
    - TWLIGHT_OAUTH_PROVIDER_URL=https://meta.wikimedia.org/w/index.php
    - DEBUG = False
    - SECRET_KEY=twlight

language: python

cache: pip

python:
  - 2.7

addons:
  mariadb: '10.2'

services:
  - mysql

before_install:

# Install the dependencies.
install:
  - pip install -r requirements/wmf.txt
  - pip install coveralls

# Initalize the app and test it.
script:
  - .travis/./init.sh
  - coverage run --source TWLight manage.py test

# Report on test coverage and push to production if the conditions are met.
after_success:
  - coveralls
  - .travis/./deploy.sh

Update Travis CI DB config.
Update Travis CI DB config.
