<commit_before>language: node_js
node_js:
  - "5"
  - "4"
  - "0.12"
  - "0.10"

env:
  - MONGODB_VERSION="2.6*"
  - MONGODB_VERSION="2.8*"
  - MONGODB_VERSION="3.0*"

before_install:
  # MongoDB
  - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
  - if [ "$MONGODB_VERSION" = "2.4*" ]; then echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee /etc/apt/sources.list.d/mongodb.list; fi
  - if [ "$MONGODB_VERSION" = "2.6*" ]; then echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee /etc/apt/sources.list.d/mongodb.list; fi
  - if [ "$MONGODB_VERSION" = "2.8*" ]; then echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/testing multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-2.8.list; fi
  - if [ "$MONGODB_VERSION" = "3.0*" ]; then echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/testing multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list; fi
  - sudo apt-get update
  - if [ "$MONGODB_VERSION" = "2.4*" ]; then sudo apt-get install -y mongodb-10gen=`echo $MONGODB_VERSION`; fi
  - if [ "$MONGODB_VERSION" != "2.4*" ]; then sudo apt-get install -y --force-yes mongodb-org-server=`echo $MONGODB_VERSION`; fi
  - mongod --version
  - if [ "$MONGODB_VERSION" = "2.4*" ]; then sudo service mongodb start; fi

before_script:
  - until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done

script: "npm test"<commit_msg>Move to non legacy infrastructure of travis<commit_after>language: node_js

sudo: false

node_js:
  - "5"
  - "4"
  - "0.12"
  - "0.10"

env:
  - MONGODB_VERSION="2.4.14"
  - MONGODB_VERSION="2.6.11"
  - MONGODB_VERSION="2.8.0"
  - MONGODB_VERSION="3.0.7"
  - MONGODB_VERSION="3.2.0"

before_script:
  - wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB_VERSION}.tgz -O /tmp/mongodb.tgz
  - tar -xvf /tmp/mongodb.tgz
  - mkdir /tmp/data
  - ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --dbpath /tmp/data &
  - ${PWD}/mongodb-linux-x86_64-${MONGODB_VERSION}/bin/mongod --version

before_script:
  - until nc -z localhost 27017; do echo Waiting for MongoDB; sleep 1; done

script: "npm test"
{'fraction_non_alphanumeric': 0.17576028622540252, 'fraction_numerical': 0.04159212880143113, 'mean_word_length': 3.4122287968441816, 'pattern_counts': {'":': 0, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4060729', 'n_tokens_mistral': 1019, 'n_tokens_neox': 926, 'n_words': 180}