<commit_before>#   A basic travis.yml boilerplate for Django projects
#
#   The set-up assumes a postgreSQL database.
#
# Taken from https://gist.github.com/ndarville/3625246

language: python


python:
  - 2.7

sudo: false

addons:
    postgresql: "9.4"
    apt:
       sources:
       - elasticsearch-2.x
       packages:
       - elasticsearch=2.4.5
       - python-requests
       - python-lxml
       - curl
       - libffi-dev
       - libssl-dev
       - ghostscript

services:
  - postgresql
  - redis
  - elasticsearch


env:
  global:
      # RoMEO API key
    - secure: "<KEY>
      # Zenodo Sandbox API key
    - secure: "<KEY>
      # Gitbot l10n key (for translation notifications)
    - secure: "<KEY>


virtualenv:
  system_site_packages: true

before_install:
  - export DJANGO_SETTINGS_MODULE=dissemin.settings
  - export PYTHONPATH=$HOME/builds/wetneb/dissemin
  - export PIP_USE_MIRRORS=true
  - echo "from .travis import *" > dissemin/settings/__init__.py
  - cp dissemin/settings/secret_template.py dissemin/settings/secret.py

install:
  - pip install setuptools --upgrade
  - pip install psycopg2 --quiet
  - pip install -r requirements.txt
  - pip install coveralls
  - pip install pyflakes
  - ./pyflakes.sh
  - pip freeze

before_script:
  - psql --version
  - psql -c "CREATE DATABASE dissemin;" -U postgres

script:
  - coverage run --source=dissemin,papers,backend,deposit,upload,statistics --omit=*/migrations/*,dissemin/settings/* manage.py test -v 2

after_success:
  - coveralls

notifications:
  irc:
    channels:
      - "ulminfo.fr#dissemin"
    on_success: never
    on_failure: never<commit_msg>Debug weird import error in migrations<commit_after>#   A basic travis.yml boilerplate for Django projects
#
#   The set-up assumes a postgreSQL database.
#
# Taken from https://gist.github.com/ndarville/3625246

language: python


python:
  - 2.7

sudo: false

addons:
    postgresql: "9.4"
    apt:
       sources:
       - elasticsearch-2.x
       packages:
       - elasticsearch=2.4.5
       - python-requests
       - python-lxml
       - curl
       - libffi-dev
       - libssl-dev
       - ghostscript

services:
  - postgresql
  - redis
  - elasticsearch


env:
  global:
      # RoMEO API key
    - secure: "<KEY>
      # Zenodo Sandbox API key
    - secure: "<KEY>
      # Gitbot l10n key (for translation notifications)
    - secure: "<KEY>


virtualenv:
  system_site_packages: true

before_install:
  - export DJANGO_SETTINGS_MODULE=dissemin.settings
  - export PYTHONPATH=$HOME/builds/wetneb/dissemin
  - export PIP_USE_MIRRORS=true
  - echo "from .travis import *" > dissemin/settings/__init__.py
  - cp dissemin/settings/secret_template.py dissemin/settings/secret.py

install:
  - pip install setuptools --upgrade
  - pip install psycopg2 --quiet
  - pip install -r requirements.txt
  - pip install codacy-coverage coverage
  - pip install pyflakes
  - ./pyflakes.sh
  - pip freeze

before_script:
  - psql --version
  - psql -c "CREATE DATABASE dissemin;" -U postgres

script:
  - coverage run --source=dissemin,papers,backend,deposit,upload,statistics --omit=*/migrations/*,dissemin/settings/* manage.py test -v 2

after_success:
  - coveralls

notifications:
  irc:
    channels:
      - "ulminfo.fr#dissemin"
    on_success: never
    on_failure: never
{'fraction_non_alphanumeric': 0.10060422960725075, 'fraction_numerical': 0.011480362537764351, 'mean_word_length': 2.630482456140351, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '557269', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1118, 'n_words': 267}