<commit_before>language: ruby

rvm:
  - 2.1.6

addons:
  postgresql: "9.3"

sudo: false

cache: bundler

env:
  - SUITE="rake test:units" DB_TYPE=mysql
  - SUITE="rake test:functionals" DB_TYPE=mysql
  - SUITE="rake test:integration" DB_TYPE=mysql
  - SUITE="rspec spec" DB_TYPE=mysql
  - SUITE="rake assets:precompile RAILS_ENV=production" DB_TYPE=mysql
  - SUITE="rake teaspoon" DB_TYPE=mysql
  - SUITE="rake test:units" DB_TYPE=postgres
  - SUITE="rake test:functionals" DB_TYPE=postgres
  - SUITE="rake test:integration" DB_TYPE=postgres
  - SUITE="rspec spec" DB_TYPE=postgres
  - SUITE="rake teaspoon" DB_TYPE=postgres
  - DISPLAY=":99.0"

before_script:
  - sh -c "if [ '$DB_TYPE' = 'pgsql' ]; then psql -c 'create database travis_ci_test;' -U postgres; fi"
  - cp test/database.travis.$DB_TYPE.yml config/database.yml
  - RAILS_ENV=test bundle exec rake db:create
  - RAILS_ENV=test bundle exec rake db:schema:load
  - sh -c "if [ '$DB_TYPE' = 'mysql' ]; then RAILS_ENV=production bundle exec rake db:create; fi"
  - sh -c "if [ '$DB_TYPE' = 'mysql' ]; then RAILS_ENV=production bundle exec rake db:schema:load; fi"
  - sh -e /etc/init.d/xvfb start
  
script: bundle exec $SUITE
<commit_msg>try to run only javascript test on travis<commit_after>language: ruby

rvm:
  - 2.1.6

addons:
  postgresql: "9.3"

sudo: false

cache: bundler

env:
  - DISPLAY=":99.0"

before_script:
  - sh -e /etc/init.d/xvfb start
  
script: bundle exec rake teaspoon

{'fraction_non_alphanumeric': 0.13127147766323025, 'fraction_numerical': 0.010996563573883162, 'mean_word_length': 4.020689655172414, 'pattern_counts': {'":': 2, '<': 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': '5576214', 'n_tokens_mistral': 588, 'n_tokens_neox': 571, 'n_words': 137}