<commit_before>language: rust

sudo: required

cache: cargo

dist: trusty

addons:
  apt:
    packages:
      - libssl-dev

before_install:
  - sudo add-apt-repository -y ppa:wayland.admin/daily-builds
  - sudo apt-get update -qq
  - sudo apt-get install -y libwayland-dev

rust:
  - 1.20.0
  - stable
  - beta
  - nightly

branches:
  only:
    - master

before_script:
  - export PATH=$HOME/.cargo/bin:$PATH
  - mkdir $(pwd)/socket
  - export XDG_RUNTIME_DIR="$(pwd)/socket"
  - |
      if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
        cargo install rustfmt-nightly --force
      fi
  - which cargo-tarpaulin || cargo install cargo-tarpaulin
  - which cargo-install-update || cargo install cargo-update
  - cargo install-update -a

os:
  - linux

script:
  - |
      if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
        cargo fmt --all -- --write-mode=diff
      fi
  - cargo build --all --all-features
  - cargo test
  - cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
  - cargo doc --all --no-deps --all-features

after_success:
  - cp ./doc_index.html ./target/doc/index.html
  - cp ./rust.css ./target/doc/rust.css

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN<commit_msg>travis: test everything<commit_after>language: rust

sudo: required

cache: cargo

dist: trusty

addons:
  apt:
    packages:
      - libssl-dev

before_install:
  - sudo add-apt-repository -y ppa:wayland.admin/daily-builds
  - sudo apt-get update -qq
  - sudo apt-get install -y libwayland-dev

rust:
  - 1.20.0
  - stable
  - beta
  - nightly

branches:
  only:
    - master

before_script:
  - export PATH=$HOME/.cargo/bin:$PATH
  - mkdir $(pwd)/socket
  - export XDG_RUNTIME_DIR="$(pwd)/socket"
  - |
      if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
        cargo install rustfmt-nightly --force
      fi
  - which cargo-tarpaulin || cargo install cargo-tarpaulin
  - which cargo-install-update || cargo install cargo-update
  - cargo install-update -a

os:
  - linux

script:
  - |
      if [ $TRAVIS_RUST_VERSION = "nightly" ]; then
        cargo fmt --all -- --write-mode=diff
      fi
  - cargo build --all --all-features
  - cargo test --all --all-features
  - cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID
  - cargo doc --all --no-deps --all-features

after_success:
  - cp ./doc_index.html ./target/doc/index.html
  - cp ./rust.css ./target/doc/rust.css

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN
{'fraction_non_alphanumeric': 0.1250501002004008, 'fraction_numerical': 0.0032064128256513026, 'mean_word_length': 2.4763231197771587, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2516406', 'n_tokens_mistral': 933, 'n_tokens_neox': 905, 'n_words': 215}