<commit_before>language: cpp

sudo: false

git:
  depth: 10

# don't re-build for tags so that [publish binary] is not re-run
# https://github.com/travis-ci/travis-ci/issues/1532
branches:
  except:
    - /^v[0-9]/

env:
  global:
   - JOBS: "8"
   - MAPNIK_GIT: v3.0.9-125-g5e30aee
   - secure: <KEY>
   - secure: <KEY>

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

matrix:
  include:
     # Coverage
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="4" COVERAGE=true # node abi 46
     # Linux
     - os: linux
       compiler: clang
       env: NODE_VERSION="5" # node abi 47
     - os: linux
       compiler: clang
       env: NODE_VERSION="4" # node abi 46
     - os: linux
       compiler: clang
       env: NODE_VERSION="0.12" # node abi 14
     - os: linux
       compiler: clang
       env: NODE_VERSION="0.10" # node abi 11
     # OS X
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="5" # node abi 47
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="4" # node abi 46
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="0.12" # node abi 14
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="0.10" # node abi 11

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')
 - echo ${COMMIT_MESSAGE}
 - if [[ ${COVERAGE} == true ]]; then
     if [[ $(uname -s) == 'Linux' ]]; then
       PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls;
     else
       PYTHONUSERBASE=$(pwd)/mason_packages/.link easy_install --user cpp-coveralls;
     fi;
     ./scripts/build_against_sdk.sh --coverage=true;
   else
     ./scripts/build_against_sdk.sh;
   fi
 - node-pre-gyp package testpackage
 - npm test

before_script:
 - if [[ ${COVERAGE} == false ]]; then
      echo "publishing";
      if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then
        echo "publishing for the first time";
        node-pre-gyp publish;
      elif [[ ${COMMIT_MESSAGE} =~ "[republish binary]" ]]; then
        echo "republishing";
        node-pre-gyp unpublish publish;
      fi
   fi

script:
 - if [[ ${COVERAGE} == true ]]; then ./mason_packages/.link/bin/cpp-coveralls --exclude node_modules --exclude tests --build-root build --gcov-options '\-lp' --exclude tools --exclude docs --exclude sdk --exclude build/Release/obj/gen --exclude src/mapnik_featureset.hpp --exclude src/mapnik_logger.hpp --exclude src/mapnik_image_view.hpp --exclude src/mapnik_geometry.hpp --exclude deps > /dev/null; fi;
 - 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>Comment out benchmark since repeated layer names aren't allowed in composite.<commit_after>language: cpp

sudo: false

git:
  depth: 10

# don't re-build for tags so that [publish binary] is not re-run
# https://github.com/travis-ci/travis-ci/issues/1532
branches:
  except:
    - /^v[0-9]/

env:
  global:
   - JOBS: "8"
   - MAPNIK_GIT: v3.0.9-125-g5e30aee
   - secure: <KEY>
   - secure: <KEY>

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

matrix:
  include:
     # Coverage
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="4" COVERAGE=true # node abi 46
     # Linux
     - os: linux
       compiler: clang
       env: NODE_VERSION="5" # node abi 47
     - os: linux
       compiler: clang
       env: NODE_VERSION="4" # node abi 46
     - os: linux
       compiler: clang
       env: NODE_VERSION="0.12" # node abi 14
     - os: linux
       compiler: clang
       env: NODE_VERSION="0.10" # node abi 11
     # OS X
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="5" # node abi 47
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="4" # node abi 46
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="0.12" # node abi 14
     - os: osx
       osx_image: xcode7
       compiler: clang
       env: NODE_VERSION="0.10" # node abi 11

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')
 - echo ${COMMIT_MESSAGE}
 - if [[ ${COVERAGE} == true ]]; then
     if [[ $(uname -s) == 'Linux' ]]; then
       PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls;
     else
       PYTHONUSERBASE=$(pwd)/mason_packages/.link easy_install --user cpp-coveralls;
     fi;
     ./scripts/build_against_sdk.sh --coverage=true;
   else
     ./scripts/build_against_sdk.sh;
   fi
 - node-pre-gyp package testpackage
 - npm test

before_script:
 - if [[ ${COVERAGE} == false ]]; then
      echo "publishing";
      if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then
        echo "publishing for the first time";
        node-pre-gyp publish;
      elif [[ ${COMMIT_MESSAGE} =~ "[republish binary]" ]]; then
        echo "republishing";
        node-pre-gyp unpublish publish;
      fi
   fi

script:
 - if [[ ${COVERAGE} == true ]]; then ./mason_packages/.link/bin/cpp-coveralls --exclude node_modules --exclude tests --build-root build --gcov-options '\-lp' --exclude tools --exclude docs --exclude sdk --exclude build/Release/obj/gen --exclude src/mapnik_featureset.hpp --exclude src/mapnik_logger.hpp --exclude src/mapnik_image_view.hpp --exclude src/mapnik_geometry.hpp --exclude deps > /dev/null; fi;
 #- 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.139009426904085, 'fraction_numerical': 0.0212479425407751, 'mean_word_length': 2.434737923946557, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4954571', 'n_tokens_mistral': 2515, 'n_tokens_neox': 2398, 'n_words': 574}