<commit_before>sudo: false
language: node_js
node_js:
  - 4
  - 5
  - 7

env:
  global:
  - SAUCE_USERNAME: karmarunnerbot
  - secure: "<KEY>
  - CXX=g++-4.8
matrix:
  fast_finish: true
  include:
    - node_js: "6"
      env: VALIDATE_COMMIT_MSG=true LINT=true

before_install:
  - npm config set loglevel warn
  - g++-4.8 --version
  - if [[ "`node --version`" = v0* ]] || [[ "`node --version`" = v4* ]]; then npm install -g npm@latest-3; fi

addons:
  firefox:
    "latest"
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - npm run init
  - export $(openssl aes-256-cbc -pass env:CREDENTIALS_PASS -d -in credentials)
  - 'if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then npm run travis; else ./scripts/validate-commit-msg.sh $TRAVIS_COMMIT; fi'
  - 'if [ "$LINT" == "true" ]; then npm run lint; fi'

script:
  - npm run travis<commit_msg>chore(ci): validate commit message when asked, only run tests once<commit_after>sudo: false
language: node_js
node_js:
  - 4
  - 5
  - 7

env:
  global:
  - SAUCE_USERNAME: karmarunnerbot
  - secure: "<KEY>
  - CXX=g++-4.8
matrix:
  fast_finish: true
  include:
    - node_js: "6"
      env: VALIDATE_COMMIT_MSG=true LINT=true

before_install:
  - npm config set loglevel warn
  - g++-4.8 --version
  - if [[ "`node --version`" = v0* ]] || [[ "`node --version`" = v4* ]]; then npm install -g npm@latest-3; fi

addons:
  firefox:
    "latest"
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - npm run init
  - export $(openssl aes-256-cbc -pass env:CREDENTIALS_PASS -d -in credentials)
  - 'if [ "$VALIDATE_COMMIT_MSG" == "true" ]; then ./scripts/validate-commit-msg.sh $TRAVIS_COMMIT; fi'
  - 'if [ "$LINT" == "true" ]; then npm run lint; fi'

script:
  - npm run travis
{'fraction_non_alphanumeric': 0.15819502074688796, 'fraction_numerical': 0.01970954356846473, 'mean_word_length': 2.681297709923664, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5845236', 'n_tokens_mistral': 818, 'n_tokens_neox': 780, 'n_words': 192}