<commit_before>notifications:
  email: false
  irc:
    channels:
      - "irc.mysociety.org#build"
    use_notice: true
    skip_join: true

services:
  - elasticsearch

language: python
python:
  - '2.7'
  - '3.4'
  - '3.5'
addons:
  postgresql: "9.1"

install:
  - sudo apt-get update -qq
  - sudo apt-get install python-virtualenv curl yui-compressor
  - gem install --no-ri --no-rdoc compass -v 0.12.7
  - gem install --no-ri --no-rdoc sass -v 3.2.19
  # Make sure pip is at the latest version:
  - pip install -U pip
  # Now install the rest of the required Python packages:
  - CFLAGS="-O0" pip install -r requirements.txt
  - pip install python-coveralls
  # Create a basic general.yml file:
  - sed -r
    -e "s,(YNMP_DB_USER:) .*,\\1 'postgres',"
    -e "s,(SECRET_KEY:) '',\\1 'notatallsecret',"
    conf/general.yml-example > conf/general.yml
  - ./manage.py compilemessages

script:
  - ./run-tests --coverage
after_success:
  - coveralls<commit_msg>Switch to using container-based builds on Travis<commit_after>sudo: false

notifications:
  email: false
  irc:
    channels:
      - "irc.mysociety.org#build"
    use_notice: true
    skip_join: true

services:
  - elasticsearch

language: python
python:
  - '2.7'
  - '3.4'
  - '3.5'
addons:
  postgresql: "9.1"

install:
  - gem install --no-ri --no-rdoc compass -v 0.12.7
  - gem install --no-ri --no-rdoc sass -v 3.2.19
  # Make sure pip is at the latest version:
  - pip install -U pip
  # Now install the rest of the required Python packages:
  - CFLAGS="-O0" pip install -r requirements.txt
  - pip install python-coveralls
  # Create a basic general.yml file:
  - sed -r
    -e "s,(YNMP_DB_USER:) .*,\\1 'postgres',"
    -e "s,(SECRET_KEY:) '',\\1 'notatallsecret',"
    conf/general.yml-example > conf/general.yml
  - ./manage.py compilemessages

script:
  - ./run-tests --coverage
after_success:
  - coveralls
{'fraction_non_alphanumeric': 0.13860860329261815, 'fraction_numerical': 0.0201805629314923, 'mean_word_length': 2.623076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '42801', 'n_tokens_mistral': 722, 'n_tokens_neox': 691, 'n_words': 195}