<commit_before>language: rust

before_cache:
- rm -rf /home/travis/.cargo/registry

cache:
  directories:
  - /home/travis/.cargo

env:
  - PACKAGE_NAME="hinterland-$TRAVIS_OS_NAME.tgz"

rust:
  - stable
  - nightly

os:
  - linux
  - osx

sudo: required

matrix:
  allow_failures:
    - rust: nightly

addons:
  apt:
    packages:
    - libasound2-dev

script:
  - cargo build
  - cargo build --release
  - cargo clippy -- -D clippy
  - cargo test

before_deploy:
  - mkdir -p hinterland/assets
  - cp assets/*.png hinterland/assets
  - cp assets/*.json hinterland/assets
  - cp -r assets/maps hinterland/assets
  - cp -r assets/audio hinterland/assets
  - cp target/release/hinterland hinterland
  - tar zcfv $PACKAGE_NAME hinterland<commit_msg>Fix travis build<commit_after>language: rust

before_cache:
- rm -rf /home/travis/.cargo/registry

cache:
  directories:
  - /home/travis/.cargo

env:
  - PACKAGE_NAME="hinterland-$TRAVIS_OS_NAME.tgz"

rust:
  - stable
  - nightly

os:
  - linux
  - osx

sudo: required

matrix:
  allow_failures:
    - rust: nightly

addons:
  apt:
    packages:
    - libasound2-dev

before_script:
  - rustup component add clippy-preview

script:
  - cargo build
  - cargo clippy -- -D clippy
  - cargo test

before_deploy:
  - mkdir -p hinterland/assets
  - cp assets/*.png hinterland/assets
  - cp assets/*.json hinterland/assets
  - cp -r assets/maps hinterland/assets
  - cp -r assets/audio hinterland/assets
  - cp target/release/hinterland hinterland
  - tar zcfv $PACKAGE_NAME hinterland
{'fraction_non_alphanumeric': 0.10478061558611657, 'fraction_numerical': 0.0013097576948264572, 'mean_word_length': 2.7728395061728395, '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': '1615263', 'n_tokens_mistral': 588, 'n_tokens_neox': 583, 'n_words': 131}