<commit_before>dist: xenial
language: bash
git:
  depth: 1
  quiet: true

branches:
  # Don't build these branches
  except:
    # Used by bors
    - trying.tmp
    - staging.tmp

cache:
  directories:
    - $HOME/.cargo
before_cache:
  - cargo install cargo-cache --debug
  - find $HOME/.cargo/bin/ ! -type d -exec strip {} \;
  - cargo cache --autoclean

env:
  global:
    - RUST_BACKTRACE=1
    - secure: "<KEY>

before_install:
  - export CARGO_TARGET_DIR="$TRAVIS_BUILD_DIR/target"
  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
  - export PATH="$HOME/.cargo/bin:$PATH"
install:
  - |
    if [[ -z ${INTEGRATION} ]]; then
      if ! rustup component add rustfmt; then
        cargo install --git https://github.com/rust-lang/rustfmt --bin rustfmt<commit_msg>Auto merge of #5009 - lzutao:travis-windows-msvc, r=phansch<commit_after>dist: xenial
language: bash
git:
  depth: 1
  quiet: true

branches:
  # Don't build these branches
  except:
    # Used by bors
    - trying.tmp
    - staging.tmp

cache:
  directories:
    - $HOME/.cargo
before_cache:
  - cargo install cargo-cache --debug
  - find $HOME/.cargo/bin/ ! -type d -exec strip {} \;
  - cargo cache --autoclean

env:
  global:
    - RUST_BACKTRACE=1
    - secure: "<KEY>

before_install:
  - export CARGO_TARGET_DIR="$TRAVIS_BUILD_DIR/target"
  - |
    case "$TRAVIS_OS_NAME" in
      linux ) HOST=x86_64-unknown-linux-gnu;;
      osx ) HOST=x86_64-apple-darwin;;
      windows ) HOST=x86_64-pc-windows-msvc;;
    esac
  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-host="$HOST" --default-toolchain=nightly --profile=minimal
  - export PATH="$HOME/.cargo/bin:$PATH"
install:
  - |
    if [[ -z ${INTEGRATION} ]]; then
      if ! rustup component add rustfmt; then
        cargo install --git https://github.com/rust-lang/rustfmt --bin rustfmt
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.010700909577314071, 'mean_word_length': 2.65234375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '3245846', 'n_tokens_mistral': 703, 'n_tokens_neox': 682, 'n_words': 159}