<commit_before>language: node_js

services:
  - couchdb

node_js:
  - "0.10"
script: npm run $COMMAND
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - "sleep 5"

    # Workaround for Selenium #3280 issue
  - "sudo sed -i 's/^127\\.0\\.0\\.1.*$/127.0.0.1 localhost/' /etc/hosts"

    # cloudant password setup
  - "echo \"module.exports = '$CLOUDANT_PASSWORD';\" > test/.cloudant-password.js"

after_failure:
  - "curl -X GET http://127.0.0.1:5984/_log?bytes=1000000"

env:
  global:
    # TODO: use CouchDB instead of cloudant when query support lands
    - secure: "<KEY>
    - secure: "<KEY>
  matrix:
  - COMMAND=test
  - CLIENT=selenium:firefox COMMAND=test
  - CLIENT=selenium:phantomjs COMMAND=test
  - COMMAND=coverage

matrix:
 allow_failures:
   env: COMMAND=coverage

branches:
  only:<commit_msg>fix allowed travis failures<commit_after>language: node_js

services:
  - couchdb

node_js:
  - "0.10"
script: npm run $COMMAND
before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - "sleep 5"

    # Workaround for Selenium #3280 issue
  - "sudo sed -i 's/^127\\.0\\.0\\.1.*$/127.0.0.1 localhost/' /etc/hosts"

    # cloudant password setup
  - "echo \"module.exports = '$CLOUDANT_PASSWORD';\" > test/.cloudant-password.js"

after_failure:
  - "curl -X GET http://127.0.0.1:5984/_log?bytes=1000000"

env:
  global:
    # TODO: use CouchDB instead of cloudant when query support lands
    - secure: "<KEY>
    - secure: "<KEY>
  matrix:
  - COMMAND=test
  - CLIENT=selenium:firefox COMMAND=test
  - CLIENT=selenium:phantomjs COMMAND=test
  - COMMAND=coverage

matrix:
 allow_failures:
 - env: COMMAND=coverage
 fast_finish: true

branches:
  only:
{'fraction_non_alphanumeric': 0.14962010520163646, 'fraction_numerical': 0.046756282875511396, 'mean_word_length': 3.105515587529976, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5721692', 'n_tokens_mistral': 735, 'n_tokens_neox': 654, 'n_words': 146}