<commit_before>language: c++

compiler:
#  - clang
  - gcc

cache:
  apt: true

# Disallowing packages: libcomedi-dev, libcommoncpp2-dev, libomniorb4-dev, libpqxx-dev
# If you require these packages, please review the package approval process at: https://github.com/travis-ci/apt-package-whitelist#package-approval-process
#sudo: false

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "<KEY>

before_install:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get -qq update
  - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8 libstdc++-4.8-dev; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi

install:
  # have no catch package
  - sudo apt-get install libcomedi-dev libcommoncpp2-dev libmysqlclient-dev libomniorb4-dev omniidl xsltproc libpqxx3-dev librrd-dev libsigc++-2.0-dev libsqlite3-dev python-dev
  - wget https://raw.githubusercontent.com/philsquared/Catch/master/single_include/catch.hpp -O include/catch.hpp

before_script:
  - export CXXFLAGS='-pipe -O2 -pedantic -Wall'
  # due broken comedi
  - export CXXFLAGS="$CXXFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs"
  - autoreconf -fiv
  - ./configure --enable-tests --enable-mysql --enable-sqlite --enable-rrd --enable-io --enable-logicproc

script:
  - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make && make check ; fi


addons:
#  apt:
#    packages:
#      - libcomedi-dev
#      - libcommoncpp2-dev
#      - libmysqlclient-dev
#      - libomniorb4-dev
#      - libpqxx-dev
#      - librrd-dev
#      - libsigc++-2.0-dev
#      - libsqlite3-dev
#      - python-dev
  coverity_scan:
    project:
      name: "Etersoft/uniset2"
      description: "UniSet2 build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command_prepend: "./configure --disable-tests; make clean"
    build_command: make -j4
    branch_pattern: coverity_scan<commit_msg>travis: comment out make check, drop configure before coverity<commit_after>language: c++

compiler:
#  - clang
  - gcc

cache:
  apt: true

# Disallowing packages: libcomedi-dev, libcommoncpp2-dev, libomniorb4-dev, libpqxx-dev
# If you require these packages, please review the package approval process at: https://github.com/travis-ci/apt-package-whitelist#package-approval-process
#sudo: false

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "<KEY>

before_install:
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-get -qq update
  - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8 libstdc++-4.8-dev; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi

install:
  # have no catch package
  - sudo apt-get install libcomedi-dev libcommoncpp2-dev libmysqlclient-dev libomniorb4-dev omniidl xsltproc libpqxx3-dev librrd-dev libsigc++-2.0-dev libsqlite3-dev python-dev
  - wget https://raw.githubusercontent.com/philsquared/Catch/master/single_include/catch.hpp -O include/catch.hpp

before_script:
  - export CXXFLAGS='-pipe -O2 -pedantic -Wall'
  # due broken comedi
  - export CXXFLAGS="$CXXFLAGS -Wl,--unresolved-symbols=ignore-in-shared-libs"
  - autoreconf -fiv
  - ./configure --enable-tests --enable-mysql --enable-sqlite --enable-rrd --enable-io --enable-logicproc

script:
  - if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make ; fi
  #- if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then make check ; fi


addons:
#  apt:
#    packages:
#      - libcomedi-dev
#      - libcommoncpp2-dev
#      - libmysqlclient-dev
#      - libomniorb4-dev
#      - libpqxx-dev
#      - librrd-dev
#      - libsigc++-2.0-dev
#      - libsqlite3-dev
#      - python-dev
  coverity_scan:
    project:
      name: "Etersoft/uniset2"
      description: "UniSet2 build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command_prepend: "make clean"
    build_command: make -j4
    branch_pattern: coverity_scan
{'fraction_non_alphanumeric': 0.12971525918715016, 'fraction_numerical': 0.012898515453881723, 'mean_word_length': 3.159919028340081, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '443539', 'n_tokens_mistral': 1532, 'n_tokens_neox': 1484, 'n_words': 346}