<commit_before>sudo: required
dist: trusty

language: c

matrix:
  include:
    - os: linux
      compiler: gcc
      addons:
        apt:
          packages:
            - libreadline-dev
            - libssl-dev
            - libzip-dev
            - libglib2.0-dev
      env: MAKEFILE_RULE=manager

    - os: linux
      compiler: gcc
      addons:
        apt:
          packages:
            - libreadline-dev
            - libssl-dev
            - libzip-dev
      env: MAKEFILE_RULE=wb

    - os: linux
      compiler: i686-w64-mingw32-gcc
      addons:
        apt:
          packages:
            - mingw-w64-common
            - binutils-mingw-w64-i686
            - gcc-mingw-w64-base
            - gcc-mingw-w64-i686
            - gcc-mingw-w64
      before_script:
        - wget -O zlib.zip http://zlib.net/zlib128-dll.zip
          && unzip zlib.zip 'lib/*' 'include/*'
          && mv lib/zdll.lib lib/z.lib
        - wget -O openssl.zip http://downloads.sourceforge.net/gnuwin32/openssl-0.9.8h-1-lib.zip
          && unzip openssl.zip 'lib/*' 'include/*'
        - wget -O readline.zip http://downloads.sourceforge.net/gnuwin32/readline-5.0-1-bin.zip
          && unzip readline.zip 'lib/*' 'include/*' bin/readline5.dll
          && mv bin/readline5.dll readline5.dll
          && rm -vrf bin/
      env: MAKEFILE_RULE=wb OSTYPE=mingw

script:
  - make CC=$CC $MAKEFILE_RULE -j 4

env:
  global:
   - secure: "<KEY>

addons:
  coverity_scan:
    project:
      name: "Levak/warfacebot"<commit_msg>Add zlib1.dll to MinGW release package<commit_after>sudo: required
dist: trusty

language: c

matrix:
  include:
    - os: linux
      compiler: gcc
      addons:
        apt:
          packages:
            - libreadline-dev
            - libssl-dev
            - libzip-dev
            - libglib2.0-dev
      env: MAKEFILE_RULE=manager

    - os: linux
      compiler: gcc
      addons:
        apt:
          packages:
            - libreadline-dev
            - libssl-dev
            - libzip-dev
      env: MAKEFILE_RULE=wb

    - os: linux
      compiler: i686-w64-mingw32-gcc
      addons:
        apt:
          packages:
            - mingw-w64-common
            - binutils-mingw-w64-i686
            - gcc-mingw-w64-base
            - gcc-mingw-w64-i686
            - gcc-mingw-w64
      before_script:
        - wget -O zlib.zip http://zlib.net/zlib128-dll.zip
          && unzip zlib.zip 'zlib1.dll' 'lib/*' 'include/*'
          && mv lib/zdll.lib lib/z.lib
        - wget -O openssl.zip http://downloads.sourceforge.net/gnuwin32/openssl-0.9.8h-1-lib.zip
          && unzip openssl.zip 'lib/*' 'include/*'
        - wget -O readline.zip http://downloads.sourceforge.net/gnuwin32/readline-5.0-1-bin.zip
          && unzip readline.zip 'lib/*' 'include/*' bin/readline5.dll
          && mv bin/readline5.dll readline5.dll
          && rm -vrf bin/
      env: MAKEFILE_RULE=wb OSTYPE=mingw

script:
  - make CC=$CC $MAKEFILE_RULE -j 4

env:
  global:
   - secure: "<KEY>

addons:
  coverity_scan:
    project:
      name: "Levak/warfacebot"
{'fraction_non_alphanumeric': 0.11933485490707532, 'fraction_numerical': 0.028692533420280403, 'mean_word_length': 1.5126945126945126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1292418', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1087, 'n_words': 201}