<commit_before>language: cpp

dist: trusty
sudo: false

matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
    - os: osx
      compiler: clang

addons:
  apt:
    packages:
      - fonts-inconsolata
      - fonts-takao-gothic
      - fonts-takao-mincho
      - fonts-takao-pgothic

install:
  - ./autogen.sh

script:
  - ./configure --enable-debug
  - make
  - make -j check || (cat test-suite.log && false)
  - make dist<commit_msg>[ci] Deploy Travis build artifacts<commit_after>language: cpp

dist: trusty
sudo: false

matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
    - os: osx
      compiler: clang

addons:
  apt:
    packages:
      - fonts-inconsolata
      - fonts-takao-gothic
      - fonts-takao-mincho
      - fonts-takao-pgothic

install:
  - ./autogen.sh

script:
  - ./configure --enable-debug --prefix=$PWD/dist
  - make
  - make -j check || (cat test-suite.log && false)
  - make install
  - make dist
  - export ARCHIVE=ots-$TRAVIS_OS_NAME-$TRAVIS_COMMIT
  - if [ "x$TRAVIS_TAG" != "x" ]; then
      export ARCHIVE=ots-$TRAVIS_OS_NAME-$TRAVIS_TAG;
    fi
  - mkdir -p ots-$ARCHIVE
  - cp dist/bin/* ots-$ARCHIVE
  - zip -r ots-$ARCHIVE.zip ots-$ARCHIVE
  - export DEPLOY_FILE=ots-$ARCHIVE.zip

deploy:
  provider: releases
  api_key:
    - secure: "<KEY>
  file: "${DEPLOY_FILE}"
  skip_cleanup: true
  on:
    tags: true
    condition: $CC = clang
{'fraction_non_alphanumeric': 0.12577319587628866, 'fraction_numerical': 0.0, 'mean_word_length': 2.2212389380530975, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6131013', 'n_tokens_mistral': 579, 'n_tokens_neox': 556, 'n_words': 125}