<commit_before>sudo: true
language: node_js

git:
    submodules: false

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      sed -i '' 's/git@<EMAIL>:/https:\/\/github.com\//' .gitmodules;
      if [ "$CC" == "gcc" ]; then
        export CC=$(ls -t /usr/local/bin/gcc-?.?);
      fi
    fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
      sed -i 's/git<EMAIL>:/https:\/\/github.com\//' .gitmodules;
      export CXX=g++-4.8;
    fi
  - git submodule update --init --recursive
  - gem install fpm --conservative || echo "FPM install failed"

compiler:
  - gcc
  - clang

node_js:
  - "8"
  - "6.11"

env:
  - DEFAULT_DELAY: 50

matrix:
  include:
    - node_js: "6.11"
      os: osx

script:
  # This fails on node 4
  - if [[ "$TRAVIS_NODE_VERSION" == "6.11"* ]]; then
      npm run lint;
    fi
  - npm run test:coverage
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then<commit_msg>ci: upgrading to node 8<commit_after>sudo: true
language: node_js

git:
    submodules: false

before_install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      sed -i '' 's/git@<EMAIL>:/https:\/\/github.com\//' .gitmodules;
      if [ "$CC" == "gcc" ]; then
        export CC=$(ls -t /usr/local/bin/gcc-?.?);
      fi
    fi
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
      sed -i 's/git@<EMAIL>:/https:\/\/github.com\//' .gitmodules;
      export CXX=g++-4.8;
    fi
  - git submodule update --init --recursive
  - gem install fpm --conservative || echo "FPM install failed"

compiler:
  - gcc
  - clang

node_js:
  - "8"
  - "6"

env:
  - DEFAULT_DELAY: 50

matrix:
  include:
    - node_js: "8"
      os: osx

script:
  - npm run lint;
  - npm run test:coverage
  - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
{'fraction_non_alphanumeric': 0.18538011695906434, 'fraction_numerical': 0.013450292397660818, 'mean_word_length': 2.240530303030303, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1615053', 'n_tokens_mistral': 724, 'n_tokens_neox': 696, 'n_words': 165}