<commit_before>language: rust
sudo: false

before_install:
  - rvm install ruby-2.2.3
  - rvm use 2.2.3
  - bundle install

matrix:
  include:
    - rust: stable
    - rust: beta
    - rust: nightly

script:
   - cargo test
   - cd ./examples/calculator; cargo test
<commit_msg>Optimize builds by caching stuff, and reusing dependencies<commit_after>language: rust
sudo: false

before_install:
  - rvm install ruby-2.2.3
  - rvm use 2.2.3
  - bundle install

matrix:
  include:
    - rust: stable
    - rust: beta
    - rust: nightly

script:
   - cargo test

   # Bootstrap example's cache with cucumber's cache
   - cp ./target/ ./examples/calculator/target/ -r

   - cd ./examples/calculator && cargo test


cache:
  bundler: true
  directories:
    - $HOME/.cargo/
    # TODO: cache /target when per-compiler caching is available

{'fraction_non_alphanumeric': 0.10191846522781775, 'fraction_numerical': 0.014388489208633094, 'mean_word_length': 2.538135593220339, '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': '4753955', 'n_tokens_mistral': 299, 'n_tokens_neox': 276, 'n_words': 86}