<commit_before>language: c
compiler:
  - clang
  - gcc
sudo: false

addons:
  apt:
    sources:
      - george-edison55-precise-backports
    packages:
      - cmake
      - cmake-data

cache:
  ccache: true
  directories:
    - $HOME/.src

env:
  global:
    - OPENSSL_VERSION=1.1.0e
    - LCOV_VERSION=1.13
    - PATH=$HOME/.local/bin:$PATH

before_install:
  - "[ -f $HOME/.src/openssl-$OPENSSL_VERSION.tar.gz ] || wget -P $HOME/.src https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz"
  - "[ -f $HOME/.src/lcov-$LCOV_VERSION.tar.gz ] || wget -P $HOME/.src https://github.com/linux-test-project/lcov/releases/download/v$LCOV_VERSION/lcov-$LCOV_VERSION.tar.gz"

install:
  - ./.travis/install.sh

script:
  - mkdir build
  - pushd build
  - env COVERAGE=1 cmake -DOPENSSL_ROOT_DIR=$HOME/.local ..
  - make check
  - popd

after_success:
  - lcov --directory . --no-external --capture --output-file coverage.info
  - bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy<commit_msg>Run Valgrind on Travis. Closes #19.<commit_after>language: c
compiler:
  - clang
  - gcc
sudo: false

addons:
  apt:
    sources:
      - george-edison55-precise-backports
    packages:
      - cmake
      - cmake-data
      - valgrind

cache:
  ccache: true
  directories:
    - $HOME/.src

env:
  global:
    - OPENSSL_VERSION=1.1.0e
    - LCOV_VERSION=1.13
    - PATH=$HOME/.local/bin:$PATH

before_install:
  - "[ -f $HOME/.src/openssl-$OPENSSL_VERSION.tar.gz ] || wget -P $HOME/.src https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz"
  - "[ -f $HOME/.src/lcov-$LCOV_VERSION.tar.gz ] || wget -P $HOME/.src https://github.com/linux-test-project/lcov/releases/download/v$LCOV_VERSION/lcov-$LCOV_VERSION.tar.gz"

install:
  - ./.travis/install.sh

script:
  - mkdir build
  - pushd build
  - env COVERAGE=1 cmake -DOPENSSL_ROOT_DIR=$HOME/.local ..
  - make check
  - valgrind --leak-check=full ./ece-test
  - popd

after_success:
  - lcov --directory . --no-external --capture --output-file coverage.info
  - bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy
{'fraction_non_alphanumeric': 0.1581217057977959, 'fraction_numerical': 0.009583133684714902, 'mean_word_length': 2.5876288659793816, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5160955', 'n_tokens_mistral': 843, 'n_tokens_neox': 803, 'n_words': 140}