<commit_before>language: cpp

dist: trusty
sudo: false

os:
  - linux
  - osx

osx_image: xcode10.1

compiler:
  - clang
  - gcc

before_install:
  - if [ $TRAVIS_OS_NAME = osx ]; then
      brew update;
    fi;

install:
  - if [ $TRAVIS_OS_NAME = linux ]; then
      if [ "$CXX" = "g++" ]; then
        export CXX=g++-7;
      fi;
    elif [ $TRAVIS_OS_NAME = osx ]; then
      if [ "$CXX" = "g++" ]; then
        brew install gcc@7;
        export CXX=g++-7;
      fi;
    fi;
env:
  global:
   - secure: "<KEY>

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - libstdc++-7-dev
      - g++-7
      - libncursesw5-dev
  coverity_scan:
    project:
      name: "mawww/kakoune"
      description: "Build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command_prepend: "cd src && make clean"
    build_command: "make -j4"
    branch_pattern: coverity-scan

script: cd src && make && make test<commit_msg>update travis yml<commit_after>language: cpp

sudo: false

os:
  - linux
  - osx

osx_image: xcode10.1

compiler:
  - clang
  - gcc

env:
  global:
   - secure: "<KEY>

before_install: if [ "$CXX" = "g++" ]; then export CXX=g++-7; fi

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - libstdc++-7-dev
      - g++-7
      - libncursesw5-dev
  homebrew:
    update: true
    packages: gcc@7
  coverity_scan:
    project:
      name: "mawww/kakoune"
      description: "Build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command_prepend: "cd src && make clean"
    build_command: "make -j4"
    branch_pattern: coverity-scan

script: cd src && make && make test
{'fraction_non_alphanumeric': 0.12829736211031176, 'fraction_numerical': 0.011390887290167866, 'mean_word_length': 2.3247011952191237, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '1714695', 'n_tokens_mistral': 661, 'n_tokens_neox': 638, 'n_words': 155}