<commit_before>language: ruby
cache: bundler
sudo: false
bundler_args: --without development --jobs 2

services:
  - redis-server

addons:
  postgresql: "9.4"

env:
  global:
    - DB=postgresql
    - KINDLEGEN_PATH=/tmp/kindlegen/kindlegen
  matrix:
    - ES_VERSION=2.3.3

before_install:
  - mkdir /tmp/elasticsearch
  - wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1
  - /tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp
  - wget -O - http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz | tar xz --directory=/tmp/kindlegen --strip-components=1

before_script:
  - psql -c 'create database feedbin_test;' -U postgres
  - bundle exec rake db:setup
  - bundle exec rake db:test:prepare
  - curl http://127.0.0.1:9200/
  - which kindlegen<commit_msg>Kindlegen config.<commit_after>language: ruby
cache: bundler
sudo: false
bundler_args: --without development --jobs 2

services:
  - redis-server

addons:
  postgresql: "9.4"

env:
  global:
    - DB=postgresql
    - KINDLEGEN_PATH=/tmp/kindlegen/kindlegen
  matrix:
    - ES_VERSION=2.3.3

before_install:
  - mkdir /tmp/elasticsearch
  - wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1
  - /tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp
  - mkdir /tmp/kindlegen
  - wget -O - http://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz | tar xz --directory=/tmp/kindlegen --strip-components=1

before_script:
  - psql -c 'create database feedbin_test;' -U postgres
  - bundle exec rake db:setup
  - bundle exec rake db:test:prepare
  - curl http://127.0.0.1:9200/
{'fraction_non_alphanumeric': 0.13474445018069178, 'fraction_numerical': 0.026845637583892617, 'mean_word_length': 3.5815602836879434, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7603487', 'n_tokens_mistral': 710, 'n_tokens_neox': 703, 'n_words': 126}