<commit_before>environment:
  npm_version: latest
  gyp_version: latest
  github_release_token:
    secure: en/UnoFHA3RsSAHM5c6zb3RAMa4V01lC3pYG1YrHSeOPFu78SUA/0lOjNe3pp8RG
  matrix:
    - nodejs_version: 0.10
      npm_version: 4.6.1
      gyp_version: 3.5.0
    - nodejs_version: 0.12
      npm_version: 4.6.1
      gyp_version: 3.5.0
    - nodejs_version: 4
    - nodejs_version: 5
    - nodejs_version: 6
    - nodejs_version: 7
    - nodejs_version: 8

platform:
  - x86
  - x64

image: Visual Studio 2015

artifacts:
  - path: build\**\*.tar.gz
    name: libxml_binary

install:
  - npm config set msvs_version 2015
  - npm config set python C:\Python27\python.exe
  - npm install -g npm@%npm_version%
  - npm install -g node-gyp@%gyp_version%
  - npm install -g node-pre-gyp

  # work around an issue with node-gyp v3.3.1 and node 4x
  # https://github.com/nodejs/node-gyp/issues/921
  - npm config set -g cafile=package.json
  - npm config set -g strict-ssl=false
  - npm config set registry http://registry.npmjs.org/

  - ps: Install-Product node $env:nodejs_version $env:platform

build_script:
  - npm install --msvs_version=2015

test_script:
  - node --expose-gc node_modules/nodeunit/bin/nodeunit test

after_test:
  - node-pre-gyp package 2>&1

deploy:
  - provider: GitHub
    release: $(APPVEYOR_REPO_TAG_NAME)
    artifact: libxml_binary
    auth_token: $(github_release_token)
    draft: false
    prerelease: false
    on:
      appveyor_repo_tag: true

after_deploy:
  - npm config delete -g cafile
  - npm config delete -g strict-ssl
  - npm config delete registry
  - node-pre-gyp clean
  - npm install --fallback-to-build=false
  - node --expose-gc node_modules/nodeunit/bin/nodeunit test
<commit_msg>Lock down node-pre-gyp version for older Node versions<commit_after>environment:
  npm_version: latest
  gyp_version: latest
  pre_gyp_version: latest
  github_release_token:
    secure: en/UnoFHA3RsSAHM5c6zb3RAMa4V01lC3pYG1YrHSeOPFu78SUA/0lOjNe3pp8RG
  matrix:
    - nodejs_version: 0.10
      npm_version: 4.6.1
      gyp_version: 3.5.0
      pre_gyp_version: 0.6.36
    - nodejs_version: 0.12
      npm_version: 4.6.1
      gyp_version: 3.5.0
      pre_gyp_version: 0.6.36
    - nodejs_version: 4
    - nodejs_version: 5
    - nodejs_version: 6
    - nodejs_version: 7
    - nodejs_version: 8

platform:
  - x86
  - x64

image: Visual Studio 2015

artifacts:
  - path: build\**\*.tar.gz
    name: libxml_binary

install:
  - npm config set msvs_version 2015
  - npm config set python C:\Python27\python.exe
  - npm install -g npm@%npm_version%
  - npm install -g node-gyp@%gyp_version%
  - npm install -g node-pre-gyp@%pre_gyp_version%

  # work around an issue with node-gyp v3.3.1 and node 4x
  # https://github.com/nodejs/node-gyp/issues/921
  - npm config set -g cafile=package.json
  - npm config set -g strict-ssl=false
  - npm config set registry http://registry.npmjs.org/

  - ps: Install-Product node $env:nodejs_version $env:platform

build_script:
  - npm install --msvs_version=2015

test_script:
  - node --expose-gc node_modules/nodeunit/bin/nodeunit test

after_test:
  - node-pre-gyp package 2>&1

deploy:
  - provider: GitHub
    release: $(APPVEYOR_REPO_TAG_NAME)
    artifact: libxml_binary
    auth_token: $(github_release_token)
    draft: false
    prerelease: false
    on:
      appveyor_repo_tag: true

after_deploy:
  - npm config delete -g cafile
  - npm config delete -g strict-ssl
  - npm config delete registry
  - node-pre-gyp clean
  - npm install --fallback-to-build=false
  - node --expose-gc node_modules/nodeunit/bin/nodeunit test

{'fraction_non_alphanumeric': 0.09785932721712538, 'fraction_numerical': 0.03780928551570754, 'mean_word_length': 2.953846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '287435', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1349, 'n_words': 313}