<commit_before>language: node_js

node_js:
  - '0.12'

env:
  - BROWSER=PhantomJS
  - BROWSER=ChromeTravisCI
  - BROWSER=Firefox
  - BROWSER=Opera

before_install:
  - sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
  - sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -'
  - sudo apt-get update
  - sudo apt-get upgrade
  - sudo apt-get install -y opera

before_script:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - npm install -g npm@latest
  - npm install -g bower grunt-cli karma-cli
  - bower install --force-latest
  - npm install
  - npm cache clean

script:
  - cp config.sample.js config.js
  - grunt
  - npm test -- --browsers $BROWSER

after_success:
  - grunt coveralls<commit_msg>Accept apt-get upgrade and do it quietly<commit_after>language: node_js

node_js:
  - '0.12'

env:
  - BROWSER=PhantomJS
  - BROWSER=ChromeTravisCI
  - BROWSER=Firefox
  - BROWSER=Opera

before_install:
  - sudo sh -c 'echo "deb http://deb.opera.com/opera/ stable non-free" >> /etc/apt/sources.list.d/opera.list'
  - sudo sh -c 'wget -O - http://deb.opera.com/archive.key | apt-key add -'
  - sudo apt-get update
  - sudo apt-get -q -y upgrade
  - sudo apt-get install -y opera

before_script:
  - export CHROME_BIN=chromium-browser
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - npm install -g npm@latest
  - npm install -g bower grunt-cli karma-cli
  - bower install --force-latest
  - npm install
  - npm cache clean

script:
  - cp config.sample.js config.js
  - grunt
  - npm test -- --browsers $BROWSER

after_success:
  - grunt coveralls
{'fraction_non_alphanumeric': 0.12759643916913946, 'fraction_numerical': 0.007121661721068249, 'mean_word_length': 2.6180257510729614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '42970', 'n_tokens_mistral': 709, 'n_tokens_neox': 664, 'n_words': 161}