<commit_before>language: cpp

os:
  - linux
  - osx

compiler:
 - clang

env:
  matrix:
   - NODE_VERSION="0.10.36"
   - NODE_VERSION="0.12.0"
   - NODE_VERSION="iojs-v1.2.0"
  global:
   - secure: <KEY>
   - secure: <KEY>

before_install:
 - COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
 - echo $COMMIT_MESSAGE
 - export PATH=`pwd`/node_modules/.bin:$PATH
 # here we set up the node version on the fly based on the matrix value.
 # This is done manually so that it is easy to flip the 'language' to
 # objective-c in another branch (to run the same travis.yml on OS X)
 - rm -rf ~/.nvm && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
 - source ~/.nvm/nvm.sh
 - nvm install $NODE_VERSION
 - nvm use $NODE_VERSION
 - node --version
 - npm --version
 - platform=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/")

install:
 # test building from source
 - npm install aws-sdk
 - npm install --build-from-source --clang=1
 - npm test
 - node-pre-gyp package testpackage
 - npm test

before_script:
 # test publishing and installing from remote if
 # [publish binary] is present in commit message
 - echo "before_script"
 - PUBLISH_BINARY=false
 - echo $COMMIT_MESSAGE
 - if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then echo yes;PUBLISH_BINARY=true; fi;
 - echo $PUBLISH_BINARY
 - if [[ $PUBLISH_BINARY == true ]]; then node-pre-gyp unpublish publish info; rm -rf {build,lib/binding}; npm install --fallback-to-build=false; npm test; fi

script:
 # test building with against shared gdal
 - rm -rf ./build
 - rm -rf ./lib/binding
 - if [[ "$platform" == 'linux' ]]; then sudo apt-get -qq update; sudo apt-get --force-yes -qq install libgdal-dev libgdal1-dev libgdal1h=1.10.0-1~precise1; npm install --build-from-source --shared_gdal --clang=1; npm test; fi;
<commit_msg>build with JOBS for faster builds<commit_after>language: cpp

os:
  - linux
  - osx

compiler:
 - clang

env:
  matrix:
   - NODE_VERSION="0.10.36" JOBS=8
   - NODE_VERSION="0.12.0" JOBS=8
   - NODE_VERSION="iojs-v1.2.0" JOBS=8
  global:
   - secure: J5pbPr7g29oKVLrGpKXUQQUV5TJpMf2/TkPZZXezZdO5ywR7M2PfFOUOqexKUylcLyLmEgDilSJhhTLHYz+wx42VPbCTB7Q3sSZdhM0RUXc5mO4BcRKoEUHkIy2Ibp6SbcfzupT/oELFLiZSiS2xojldVMoUAs8IzLGcYStO7Jc=
   - secure: 1cPR5S+Gg4JiA3j8cvjKxSY3AshM0inXzHB/i/7P/ZjnxdvQQuZ48lK0e3TFvXQVTbA0rWYYrwuo62Fb9fc9bA8hDoOU2aruoF6hcEyuAbG7ERGRRJO9g6XaZKW1G0yK18T+1X6OBP7eXNZEPxl0OqBL8l3MKO3vuGxR3+5VQ0A=

before_install:
 - COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
 - echo $COMMIT_MESSAGE
 - export PATH=`pwd`/node_modules/.bin:$PATH
 # here we set up the node version on the fly based on the matrix value.
 # This is done manually so that it is easy to flip the 'language' to
 # objective-c in another branch (to run the same travis.yml on OS X)
 - rm -rf ~/.nvm && git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm
 - source ~/.nvm/nvm.sh
 - nvm install $NODE_VERSION
 - nvm use $NODE_VERSION
 - node --version
 - npm --version
 - platform=$(uname -s | sed "y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/")

install:
 # test building from source
 - npm install --build-from-source --clang=1
 - node-pre-gyp package testpackage
 - npm test

before_script:
 # test publishing and installing from remote if
 # [publish binary] is present in commit message
 - echo "before_script"
 - PUBLISH_BINARY=false
 - echo $COMMIT_MESSAGE
 - if test "${COMMIT_MESSAGE#*'[publish binary]'}" != "$COMMIT_MESSAGE"; then echo yes;PUBLISH_BINARY=true; fi;
 - echo $PUBLISH_BINARY
 - if [[ $PUBLISH_BINARY == true ]]; then node-pre-gyp unpublish publish info; rm -rf {build,lib/binding}; npm install --fallback-to-build=false; npm test; fi

script:
 # test building with against shared gdal
 - rm -rf ./build
 - rm -rf ./lib/binding
 - if [[ "$platform" == 'linux' ]]; then sudo apt-get -qq update; sudo apt-get --force-yes -qq install libgdal-dev libgdal1-dev libgdal1h=1.10.0-1~precise1; npm install --build-from-source --shared_gdal --clang=1; npm test; fi;

{'fraction_non_alphanumeric': 0.1266601082144614, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 3.7180974477958237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1137407', 'n_tokens_mistral': 1673, 'n_tokens_neox': 1581, 'n_words': 403}