<commit_before>language: python

sudo: false

cache:
  pip: true
  directories:
  - $HOME/.m2
  - $HOME/.npm

services:
  - mysql

python:
  - "3.4"
  - "3.5"
  - "3.6"

env:
    # the Django version from requirements.txt is used
  - $DENV=""
    # the latest Django development version is used
  - $DENV="pip install --upgrade --pre Django"

# allow the Django pre version to fail without failing the entire build
matrix:
  allow_failures:
    - env: $DENV="pip install --upgrade --pre Django"

install:
  - pip install -U pip wheel
  - pip install -r requirements.txt
  - $DENV
  - pip install coveralls
  - npm install

before_script:
# @see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start
  - mysql -e 'CREATE DATABASE pyophase;'

# command to run tests
script:
  - export PYTHONWARNINGS=all
  - python manage.py check
    # Test against Sqlite
  - python manage.py test --exclude-tag=selenium
    # Test against MySQL
  - python manage.py test --settings pyophase.settings_travis --exclude-tag=selenium
  - coverage run --omit="*/migrations*" --source="." manage.py test

after_success:
  coveralls<commit_msg>fix parameter order for test run<commit_after>language: python

sudo: false

cache:
  pip: true
  directories:
  - $HOME/.m2
  - $HOME/.npm

services:
  - mysql

python:
  - "3.4"
  - "3.5"
  - "3.6"

env:
    # the Django version from requirements.txt is used
  - $DENV=""
    # the latest Django development version is used
  - $DENV="pip install --upgrade --pre Django"

# allow the Django pre version to fail without failing the entire build
matrix:
  allow_failures:
    - env: $DENV="pip install --upgrade --pre Django"

install:
  - pip install -U pip wheel
  - pip install -r requirements.txt
  - $DENV
  - pip install coveralls
  - npm install

before_script:
# @see https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start
  - mysql -e 'CREATE DATABASE pyophase;'

# command to run tests
script:
  - export PYTHONWARNINGS=all
  - python manage.py check
    # Test against Sqlite
  - python manage.py test --exclude-tag=selenium
    # Test against MySQL
  - python manage.py test --exclude-tag=selenium --settings pyophase.settings_travis
  - coverage run --omit="*/migrations*" --source="." manage.py test --exclude-tag=selenium

after_success:
  coveralls
{'fraction_non_alphanumeric': 0.12277992277992278, 'fraction_numerical': 0.008494208494208495, 'mean_word_length': 2.8903903903903903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '591707', 'n_tokens_mistral': 937, 'n_tokens_neox': 898, 'n_words': 263}