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

git:
  depth: 1

matrix:
  include:
    - env: TARGET=x86_64-unknown-linux-gnu
           ALT=i686-unknown-linux-gnu
    - env: TARGET=x86_64-apple-darwin
           ALT=i686-apple-darwin
      os: osx

    - env: TARGET=x86_64-unknown-linux-gnu
           ALT=i686-unknown-linux-gnu
      rust: beta

    - env: TARGET=x86_64-unknown-linux-gnu
           ALT=i686-unknown-linux-gnu
      rust: nightly
      install:
        - cargo install mdbook
      script:
        - cargo test
        - cargo doc --no-deps
        - sh src/ci/dox.sh
      after_success: |
        [ $TRAVIS_BRANCH = master ] &&
        [ $TRAVIS_PULL_REQUEST = false ] &&
        [ $(uname -s) = Linux ] &&
        pip install ghp-import --user &&
        $HOME/.local/bin/ghp-import -n target/doc &&
        git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 >/dev/null

  exclude:
    - rust: stable

before_script:
  - rustup target add $ALT
script:
  - cargo test

env:
  global:
    - secure: "<KEY>

notifications:
  email:
    on_success: never
addons:
  apt:
    packages:
      - gcc-multilib
<commit_msg>Auto merge of #4481 - behnam:travis, r=alexcrichton<commit_after>language: rust
rust: stable
sudo: required
dist: trusty

git:
  depth: 1

cache:
  directories:
    - $HOME/.cargo/bin/

matrix:
  include:
    - env: TARGET=x86_64-unknown-linux-gnu
           ALT=i686-unknown-linux-gnu
    - env: TARGET=x86_64-apple-darwin
           ALT=i686-apple-darwin
      os: osx

    - env: TARGET=x86_64-unknown-linux-gnu
           ALT=i686-unknown-linux-gnu
      rust: beta

    - env: TARGET=x86_64-unknown-linux-gnu
           ALT=i686-unknown-linux-gnu
      rust: nightly
      install:
        - mdbook --help || cargo install mdbook --force
      script:
        - cargo test
        - cargo doc --no-deps
        - sh src/ci/dox.sh
      after_success: |
        [ $TRAVIS_BRANCH = master ] &&
        [ $TRAVIS_PULL_REQUEST = false ] &&
        [ $(uname -s) = Linux ] &&
        pip install ghp-import --user &&
        $HOME/.local/bin/ghp-import -n target/doc &&
        git push -qf https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages 2>&1 >/dev/null

  exclude:
    - rust: stable

before_script:
  - rustup target add $ALT
script:
  - cargo test

env:
  global:
    - secure: "<KEY>

notifications:
  email:
    on_success: never
addons:
  apt:
    packages:
      - gcc-multilib

{'fraction_non_alphanumeric': 0.12389735364875702, 'fraction_numerical': 0.026463512429831595, 'mean_word_length': 1.9987980769230769, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7093525', 'n_tokens_mistral': 961, 'n_tokens_neox': 900, 'n_words': 187}