<commit_before>language: cpp
dist: trusty
sudo: required
services:
  - docker
before_install:
  - |
    if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" ]]
    then
     sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
     sudo apt-get update -qq
     sudo apt-get install -qq libcurl4-openssl-dev libjsoncpp-dev libargtable2-dev libgnutls-dev libgcrypt11-dev valgrind wget gcc-5 g++-5
     wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
     tar -xvf libmicrohttpd-0.9.52.tar.gz
     cd libmicrohttpd-0.9.52
     ./configure && make
     sudo make install && sudo ldconfig
     cd .. && sudo rm -rf libmicrohttpd-0.9.52
     sudo pip install codecov
     sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
     sudo apt-get update -qq
     sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
    elif [[ "$TRAVIS_OS_NAME" == "osx" ]]
    then
     brew update
     brew install jsoncpp argtable curl hiredis redis
     brew install libmicrohttpd --with-ssl
    fi

matrix:
  include:
    - env: OS=fedora
      os: linux
    - env: OS=arch
      os: linux
    - env: OS=debian8
      os: linux
    - env: OS=debian9
      os: linux
    - env: OS=ubuntu1604
      os: linux
    - env: OS=ubuntu1704
      os: linux
    - env: OS=native
      os: linux
      compiler: clang
    - env: OS=native
      os: linux
      compiler: gcc
    - env: OS=native
      os: osx
      compiler: clang

compiler:
    - gcc

script:
    - if [[ "$OS" == "native" ]]; then sudo ./docker/build_test_install.sh; fi
    - if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" ]]; then ./dev/codecov.sh; bash <(curl -s https://codecov.io/bash); fi
    - if [[ "$OS" != "native" ]]; then cd docker; make ${OS}; fi
<commit_msg>Only run coverage on gcc<commit_after>language: cpp
dist: trusty
sudo: required
services:
  - docker
before_install:
  - |
    if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" ]]
    then
     sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
     sudo apt-get update -qq
     sudo apt-get install -qq libcurl4-openssl-dev libjsoncpp-dev libargtable2-dev libgnutls-dev libgcrypt11-dev valgrind wget gcc-5 g++-5
     wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
     tar -xvf libmicrohttpd-0.9.52.tar.gz
     cd libmicrohttpd-0.9.52
     ./configure && make
     sudo make install && sudo ldconfig
     cd .. && sudo rm -rf libmicrohttpd-0.9.52
     sudo pip install codecov
     sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
     sudo apt-get update -qq
     sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-5 90
    elif [[ "$TRAVIS_OS_NAME" == "osx" ]]
    then
     brew update
     brew install jsoncpp argtable curl hiredis redis
     brew install libmicrohttpd --with-ssl
    fi

matrix:
  include:
    - env: OS=fedora
      os: linux
    - env: OS=arch
      os: linux
    - env: OS=debian8
      os: linux
    - env: OS=debian9
      os: linux
    - env: OS=ubuntu1604
      os: linux
    - env: OS=ubuntu1704
      os: linux
    - env: OS=native
      os: linux
      compiler: clang
    - env: OS=native
      os: linux
      compiler: gcc
    - env: OS=native
      os: osx
      compiler: clang

compiler:
    - gcc

script:
    - if [[ "$OS" == "native" ]]; then sudo ./docker/build_test_install.sh; fi
    - if [[ "$OS" == "native" && "$TRAVIS_OS_NAME" == "linux" && "$COMPILER" == "gcc" ]]; then ./dev/codecov.sh; bash <(curl -s https://codecov.io/bash); fi
    - if [[ "$OS" != "native" ]]; then cd docker; make ${OS}; fi

{'fraction_non_alphanumeric': 0.1357402742793171, 'fraction_numerical': 0.019591379792891127, 'mean_word_length': 2.3123262279888785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4060874', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1284, 'n_words': 340}