<commit_before>language: rust
sudo: required
dist: trusty

rust:
  - stable
#  - beta
#  - nightly

env:
  matrix:
#    - TRAVIS_NODE_VERSION="4"
#    - TRAVIS_NODE_VERSION="6"
    - TRAVIS_NODE_VERSION="8"
  global:
  - secure: <KEY>

before_install:
  - source $HOME/.nvm/nvm.sh
  - nvm install ${TRAVIS_NODE_VERSION}
  - nvm use ${TRAVIS_NODE_VERSION}

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8

jobs:
  include:
    - stage: test
      script: |
        cd tests/ &&
        npm test &&
        if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
          cd ../compile_tests/ &&
          cargo test
        fi
    - stage: docs
      script: |
        [ $TRAVIS_BRANCH = master ] &&
        [ $TRAVIS_PULL_REQUEST = false ] &&
        cargo doc &&
        echo "<meta http-equiv=refresh content=0;url=neon/index.html>" > target/doc/index.html &&
        pip install ghp-import &&
        ghp-import -n target/doc &&
        git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages<commit_msg>still trying to figure out how to `pip install`<commit_after>language: rust
sudo: required
dist: trusty

rust:
  - stable
#  - beta
#  - nightly

env:
  matrix:
#    - TRAVIS_NODE_VERSION="4"
#    - TRAVIS_NODE_VERSION="6"
    - TRAVIS_NODE_VERSION="8"
  global:
  - secure: <KEY>

before_install:
  - source $HOME/.nvm/nvm.sh
  - nvm install ${TRAVIS_NODE_VERSION}
  - nvm use ${TRAVIS_NODE_VERSION}

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - g++-4.8

jobs:
  include:
    - stage: test
      script: |
        cd tests/ &&
        npm test &&
        if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
          cd ../compile_tests/ &&
          cargo test
        fi
    - stage: docs
      before_script:
        - export PATH=$HOME/.local/bin:$PATH
        - pip install ghp-import --user $(whoami)
      script: |
        [ $TRAVIS_BRANCH = master ] &&
        [ $TRAVIS_PULL_REQUEST = false ] &&
        cargo doc &&
        echo "<meta http-equiv=refresh content=0;url=neon/index.html>" > target/doc/index.html &&
        ghp-import -n target/doc &&
        git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
{'fraction_non_alphanumeric': 0.1380697050938338, 'fraction_numerical': 0.005361930294906166, 'mean_word_length': 2.144662921348315, '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': '6734627', 'n_tokens_mistral': 832, 'n_tokens_neox': 811, 'n_words': 164}