<commit_before>language: python
python:
  - "2.7"
#  - "3.3"
#  - "3.4"
  - "3.5"
env:
  global:
    - DJANGO_SETTINGS_MODULE="test_app.settings_travis"
    - PYTHONPATH="/home/travis/build/kbussell/django-jsonfield-compat"
    - TRAVIS_BUILD=true
  matrix:
    - DJANGO_VERSION=1.9.* DB=postgresql
    - DJANGO_VERSION=1.10.* DB=postgresql
    - DJANGO_VERSION=1.9.* DB=mysql
    - DJANGO_VERSION=1.10.* DB=mysql

dist: trusty

addons:
    postgresql: "9.5"

services:
    - postgresql
    - mysql

install:
  - "pip install -q Django==$DJANGO_VERSION"
  - "pip install q -r requirements.txt"

before_script:
  - sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS travisdb; CREATE DATABASE travisdb;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'DROP DATABASE IF EXISTS travisdb; CREATE DATABASE travisdb;'; fi"
  
script:
  - python tests/runtests.py<commit_msg>Fix travis sql setup<commit_after>language: python
python:
  - "2.7"
#  - "3.3"
#  - "3.4"
  - "3.5"
env:
  global:
    - DJANGO_SETTINGS_MODULE="test_app.settings_travis"
    - PYTHONPATH="/home/travis/build/kbussell/django-jsonfield-compat"
    - TRAVIS_BUILD=true
  matrix:
    - DJANGO_VERSION=1.9.* DB=postgresql
    - DJANGO_VERSION=1.10.* DB=postgresql
    - DJANGO_VERSION=1.9.* DB=mysql
    - DJANGO_VERSION=1.10.* DB=mysql

dist: trusty

addons:
    postgresql: "9.5"

services:
    - postgresql
    - mysql-server-5.5

install:
  - "pip install -q Django==$DJANGO_VERSION"
  - "pip install q -r requirements.txt"

before_script:
  - sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS travisdb;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'CREATE DATABASE travisdb;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'DROP DATABASE IF EXISTS travisdb;'; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE travisdb;'; fi"

script:
  - python tests/runtests.py
{'fraction_non_alphanumeric': 0.1559633027522936, 'fraction_numerical': 0.021406727828746176, 'mean_word_length': 3.039094650205761, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '702054', 'n_tokens_mistral': 844, 'n_tokens_neox': 823, 'n_words': 180}