<commit_before>language: c
sudo: required
dist: trusty

env:
  global:
        - secure: "<KEY>
        - COVERITY_SCAN_BRANCH_PATTERN="(master|coverity-.*)"
        - COVERITY_SCAN_NOTIFICATION_EMAIL="<EMAIL>"
        - COVERITY_SCAN_BUILD_COMMAND="make"
        - COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
        - LIBSNDFILE_URL="http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz"
        - LD_LIBRARY_PATH=/usr/local/lib

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

addons:
  apt:
    packages:
      - libvorbis-dev
      - libflac-dev
      - libasound2-dev
      - doxygen
      - lcov
      - ca-certificates

matrix:
  include:
    - compiler: gcc
      env:
        - DO_EXTRA="coverage"
        - CFLAGS="-g -O0 --coverage"
        - CXXFLAGS="-g -O0 --coverage"
        - LDFLAGS="--coverage"
        - CONFIGUREFLAGS="--enable-debug"
    - compiler: gcc
      env:
        - DO_EXTRA="coverity"
  exclude:
    - os: osx
      compiler: gcc

install:
  ## build libsndfile
  - mkdir -p libsndfile/build && curl "$LIBSNDFILE_URL" | tar --strip-components=1 -C libsndfile -xvzf -
  - cd libsndfile/build && ../configure --disable-silent-rules && make && sudo make install
  ## remove libtool libs
  - find /usr/local/lib -type f -name "*.la" -exec sudo rm -f {} \+
before_script:
  # configure the build
  - cd "$TRAVIS_BUILD_DIR"
  - ./autogen.sh
  - ./configure --disable-silent-rules ${CONFIGUREFLAGS}
  # OMG, Coverity scan uses a certificate not supported by travis-ci
  - if [ -d /etc/ssl/certs/ ] ; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt; fi
  # implement Coverity Scan with before_script instead of addons.coverity_scan
  # to work around too-early quota check by the coverity_scan addon
  - if [[ "x${DO_EXTRA}" = "xcoverity" ]] ; then curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true ; fi<commit_msg>[travis-ci] remove coverage traces in libsndfile<commit_after>language: c
sudo: required
dist: trusty

env:
  global:
        - secure: "<KEY>
        - COVERITY_SCAN_BRANCH_PATTERN="(master|coverity-.*)"
        - COVERITY_SCAN_NOTIFICATION_EMAIL="<EMAIL>"
        - COVERITY_SCAN_BUILD_COMMAND="make"
        - COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG"
        - LIBSNDFILE_URL="http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz"
        - LD_LIBRARY_PATH=/usr/local/lib

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

addons:
  apt:
    packages:
      - libvorbis-dev
      - libflac-dev
      - libasound2-dev
      - doxygen
      - lcov
      - ca-certificates

matrix:
  include:
    - compiler: gcc
      env:
        - DO_EXTRA="coverage"
        - CFLAGS="-g -O0 --coverage"
        - CXXFLAGS="-g -O0 --coverage"
        - LDFLAGS="--coverage"
        - CONFIGUREFLAGS="--enable-debug"
    - compiler: gcc
      env:
        - DO_EXTRA="coverity"
  exclude:
    - os: osx
      compiler: gcc

install:
  ## build libsndfile
  - mkdir -p libsndfile/build && curl "$LIBSNDFILE_URL" | tar --strip-components=1 -C libsndfile -xvzf -
  - cd libsndfile/build && ../configure --disable-silent-rules && make && sudo make install
  ## remove coverage traces
  - find . -name "*.gcda" -delete
  - find . -name "*.gcno" -delete
  ## remove libtool libs
  - find /usr/local/lib -type f -name "*.la" -exec sudo rm -f {} \+

before_script:
  # configure the build
  - cd "$TRAVIS_BUILD_DIR"
  - ./autogen.sh
  - ./configure --disable-silent-rules ${CONFIGUREFLAGS}
  # OMG, Coverity scan uses a certificate not supported by travis-ci
  - if [ -d /etc/ssl/certs/ ] ; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt; fi
  # implement Coverity Scan with before_script instead of addons.coverity_scan
  # to work around too-early quota check by the coverity_scan addon
  - if [[ "x${DO_EXTRA}" = "xcoverity" ]] ; then curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true ; fi
{'fraction_non_alphanumeric': 0.13638542665388304, 'fraction_numerical': 0.0052732502396931925, 'mean_word_length': 2.489130434782609, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5119724', 'n_tokens_mistral': 1572, 'n_tokens_neox': 1521, 'n_words': 327}