<commit_before>sudo: false
language: c

# Build matrix
compiler:
  - gcc
  - clang
env:
  - BUILD_SHARED_LIBS="ON"
  - BUILD_SHARED_LIBS="OFF"
  - WITH_CXX="ON"
  - WITH_CXX="OFF"

addons:
  apt:
    packages:
    - cmake
    - lcov
    - g++

before_install:
  - echo `$CC --version`
  - echo `$CXX --version`
  - gem install coveralls-lcov
  - if [ "$CC" = "gcc" ]; then export WITH_GCOV=ON; else WITH_GCOV=OFF; fi

script:
  - mkdir -p build
  - cd build
  - cmake -DCGREEN_WITH_CXX:BOOL=$WITH_CXX -DCGREEN_WITH_UNIT_TESTS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=$BUILD_SHARED_LIBS -DCGREEN_INTERNAL_WITH_GCOV:BOOL=$WITH_GCOV ..
  - make -j2
  - ctest --output-on-failure

after_success:
  - if [ "$CC" = "gcc" ];
    then
      lcov -d tests -d src -base-directory .. -c -o coverage.info;
      lcov --remove coverage.info '/usr/*' -o coverage.info;
      cd ..;
      coveralls-lcov build/coverage.info;
    fi

notifications:
  slack: cgreen:EC3bZqwnyBsaqyeIndEewwNT
<commit_msg>Added printout to see which c++ was used<commit_after>1xsudo: false
language: c

# Build matrix
compiler:
  - gcc
  - clang

env:
  - BUILD_SHARED_LIBS="ON"
  - BUILD_SHARED_LIBS="OFF"
  - WITH_CXX="ON"
  - WITH_CXX="OFF"

addons:
  apt:
    packages:
    - cmake
    - lcov
    - g++

before_install:
  - if [[ $CC==gcc ]] ; then export CXX=g++ ; fi
  - echo `$CC --version`
  - echo `$CXX --version`
  - gem install coveralls-lcov
  - if [ "$CC" = "gcc" ]; then export WITH_GCOV=ON; else WITH_GCOV=OFF; fi

script:
  - mkdir -p build
  - cd build
  - cmake -DCGREEN_WITH_CXX:BOOL=$WITH_CXX -DCGREEN_WITH_UNIT_TESTS:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=$BUILD_SHARED_LIBS -DCGREEN_INTERNAL_WITH_GCOV:BOOL=$WITH_GCOV ..
  - make -j2
  - ctest --output-on-failure

after_success:
  - if [ "$CC" = "gcc" ];
    then
      lcov -d tests -d src -base-directory .. -c -o coverage.info;
      lcov --remove coverage.info '/usr/*' -o coverage.info;
      cd ..;
      coveralls-lcov build/coverage.info;
    fi

notifications:
  slack: cgreen:EC3bZqwnyBsaqyeIndEewwNT

{'fraction_non_alphanumeric': 0.13906633906633906, 'fraction_numerical': 0.002457002457002457, 'mean_word_length': 2.7914338919925514, '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': '5845099', 'n_tokens_mistral': 868, 'n_tokens_neox': 841, 'n_words': 175}