<commit_before>language: cpp

sudo: false

git:
  depth: 2

addons:
  apt:
    sources:
     - ubuntu-toolchain-r-test
     - llvm-toolchain-precise-3.5
    packages:
     - clang-3.5

matrix:
  include:
     # Coverage
     #- os: osx
     #  compiler: clang
     #  env: NODE_VERSION="1.2.0" COVERAGE=true # node abi 43
     # Linux
     #- os: linux
     #  compiler: clang
     #  env: NODE_VERSION="1.2.0" # node abi 43
     #- os: linux
     #  compiler: clang
     #  env: NODE_VERSION="0.12.2" # node abi 14
     - os: linux
       compiler: clang
       env: NODE_VERSION="0.10.38" # node abi 11
     # OS X
     #- os: osx
     #  compiler: clang
     #  env: NODE_VERSION="1.2.0" # node abi 43
     #- os: osx
     #  compiler: clang
     #  env: NODE_VERSION="0.12.2" # node abi 14
     - os: osx
       compiler: clang
       env: NODE_VERSION="0.10.38" # node abi 11

env:
  global:
   - JOBS: "8"
   - MAPNIK_GIT: v3.0.0-rc1-1095-g1476022
   - secure: <KEY>
   - secure: <KEY>

before_install:
 - scripts/validate_tag.sh
 - export COVERAGE=${COVERAGE:-false}
 - if [[ $(uname -s) == 'Linux' ]]; then
     export CXX="clang++-3.5";
     export CC="clang-3.5";
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
   else
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
   fi;
 - source ./scripts/install_node.sh ${NODE_VERSION}
 - export PATH=./node_modules/.bin/:$PATH

install:
 - COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
 - if [[ ${COVERAGE} == true ]]; then
     PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls;
     ./scripts/build_against_sdk.sh --coverage=true;
   else
     ./scripts/build_against_sdk.sh;
   fi
 - node-pre-gyp package testpackage
 - npm test

before_script:
 - if [[ ${CXX} =~ "clang" ]] && [[ ${COVERAGE} == false ]]; then
      if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then
        node-pre-gyp publish;
      elif [[ ${COMMIT_MESSAGE} =~ "[republish binary]" ]]; then
        node-pre-gyp unpublish publish;
      fi
   fi

script:
 - node --expose-gc bench/error/test_vt_abort2.js
 # ugh: always killed by travis
 #- nice -n 19 node --expose-gc bench/error/test_vt_abort.js
<commit_msg>one more sdk bump [publish binary]<commit_after>language: cpp

sudo: false

git:
  depth: 2

addons:
  apt:
    sources:
     - ubuntu-toolchain-r-test
     - llvm-toolchain-precise-3.5
    packages:
     - clang-3.5

matrix:
  include:
     # Coverage
     #- os: osx
     #  compiler: clang
     #  env: NODE_VERSION="1.2.0" COVERAGE=true # node abi 43
     # Linux
     #- os: linux
     #  compiler: clang
     #  env: NODE_VERSION="1.2.0" # node abi 43
     #- os: linux
     #  compiler: clang
     #  env: NODE_VERSION="0.12.2" # node abi 14
     - os: linux
       compiler: clang
       env: NODE_VERSION="0.10.38" # node abi 11
     # OS X
     #- os: osx
     #  compiler: clang
     #  env: NODE_VERSION="1.2.0" # node abi 43
     #- os: osx
     #  compiler: clang
     #  env: NODE_VERSION="0.12.2" # node abi 14
     - os: osx
       compiler: clang
       env: NODE_VERSION="0.10.38" # node abi 11

env:
  global:
   - JOBS: "8"
   - MAPNIK_GIT: v3.0.0-rc1-1096-gbaa7eae
   - secure: <KEY>
   - secure: <KEY>

before_install:
 - scripts/validate_tag.sh
 - export COVERAGE=${COVERAGE:-false}
 - if [[ $(uname -s) == 'Linux' ]]; then
     export CXX="clang++-3.5";
     export CC="clang-3.5";
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python2.7/site-packages;
   else
     export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages;
   fi;
 - source ./scripts/install_node.sh ${NODE_VERSION}
 - export PATH=./node_modules/.bin/:$PATH

install:
 - COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
 - if [[ ${COVERAGE} == true ]]; then
     PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls;
     ./scripts/build_against_sdk.sh --coverage=true;
   else
     ./scripts/build_against_sdk.sh;
   fi
 - node-pre-gyp package testpackage
 - npm test

before_script:
 - if [[ ${CXX} =~ "clang" ]] && [[ ${COVERAGE} == false ]]; then
      if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then
        node-pre-gyp publish;
      elif [[ ${COMMIT_MESSAGE} =~ "[republish binary]" ]]; then
        node-pre-gyp unpublish publish;
      fi
   fi

script:
 - node --expose-gc bench/error/test_vt_abort2.js
 # ugh: always killed by travis
 #- nice -n 19 node --expose-gc bench/error/test_vt_abort.js

{'fraction_non_alphanumeric': 0.15558011049723758, 'fraction_numerical': 0.03005524861878453, 'mean_word_length': 2.3877245508982035, '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': '1484295', 'n_tokens_mistral': 1832, 'n_tokens_neox': 1750, 'n_words': 375}