<commit_before>language: rust
cache: cargo
env:
  global:
  - PROJECT_NAME=skim
matrix:
  include:
  - os: osx
    rust: nightly
    env: TARGET=x86_64-apple-darwin
  - os: linux
    rust: nightly
    env: TARGET=x86_64-unknown-linux-gnu
before_install:
- export PATH="$PATH:$HOME/.cargo/bin"
before_deploy:
- bash ci/before_deploy.sh
deploy:
  provider: releases
  api_key:
  - secure: <KEY>
  file_glob: true
  file: "${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.*"
  skip_cleanup: true
  on:
    condition: "$TRAVIS_RUST_VERSION = nightly"
    tags: true
branches:
  only:
  - master
  - "/^v\\d+\\.\\d+\\.\\d+.*$/"
notifications:
  email:
    on_success: never<commit_msg>[ci] try to include the integration test<commit_after>language: rust
rust:
  stable

cache: cargo
dist: trusty
sudo: required
python:
  - "3.4"
env:
  global:
  - PROJECT_NAME=skim

matrix:
  include:
  - os: osx
    rust: nightly
    env: TARGET=x86_64-apple-darwin
  - os: linux
    rust: nightly
    env: TARGET=x86_64-unknown-linux-gnu

before_install:
  - export PATH="$PATH:$HOME/.cargo/bin"
  - sudo apt-get -y install python3-pip python-dev
  - sudo pip3 install -U setuptools
  - sudo pip3 install -U virtualenvwrapper
  - python3 -V
  - pip3 -V

install:
 - sudo apt-get install -y tmux zsh

script:
  - cargo build --release --verbose
  - cargo test --verbose
  - tmux new "python3 test/test_skim.py > out && touch ok" && cat out && [ -e ok ]

before_deploy:
  - bash ci/before_deploy.sh

deploy:
  provider: releases
  api_key:
  - secure: <KEY>
  file_glob: true
  file: "${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.*"
  skip_cleanup: true
  on:
    condition: "$TRAVIS_RUST_VERSION = nightly"
    tags: true

branches:
  only:
  - master
  - "/^v\\d+\\.\\d+\\.\\d+.*$/"

notifications:
  email:
    on_success: never
{'fraction_non_alphanumeric': 0.14301613800779076, 'fraction_numerical': 0.01335559265442404, 'mean_word_length': 2.951648351648352, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5467243', 'n_tokens_mistral': 719, 'n_tokens_neox': 690, 'n_words': 165}