<commit_before>language: cpp

matrix:
  include:
    - os: linux
      dist: bionic
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC="--enable-shared-mongoc"
    - os: linux
      dist: xenial
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC=
    - os: osx
      osx_image: xcode10.1
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC="--enable-shared-mongoc"
    - os: osx
      osx_image: xcode9.4
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC=

env:
  global:
    - CI_WORK=`pwd`

addons:
  apt:
    packages:
      - qtbase5-dev
      - qt5-default
      - qt5-qmake
      - qttools5-dev-tools
      - qtdeclarative5-dev
      - qtdeclarative5-dev-tools
      - libqt5sql5
      - libqt5sql5-sqlite
      - libsqlite3-dev
      - libmongoc-dev
      - libbson-dev
      - gdb
      - ruby
      - ruby-dev
      - ruby-all-dev
      - gem

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo gem install jekyll bundler; cd $CI_WORK/docs; bundle install; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt mongo-c-driver; brew link --force qt; brew link mongo-c-driver; fi

install:
  - cd $CI_WORK
  - qmake -v
  - ./configure --prefix=/usr/local $CONFIG_SHARED_MONGOC
  - make -j4 -C src
  - sudo make -C src install
  - make -j4 -C tools
  - sudo make -C tools install
  - treefrog -v

before_script:
  - cd $CI_WORK
  - cd tools/tmake/test
  - qmake tmaketest.pro
  - make

script:
  - cd $CI_WORK
  - ./src/test/testall.sh
  - cd $CI_WORK/tools/tmake/test
  - ./tmaketest
  - cd $CI_WORK/tools/test
  - ./releasetest/releasetest
  - cd $CI_WORK/docs
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then bundle exec jekyll build; fi<commit_msg>update travis.yml<commit_after>language: cpp

matrix:
  include:
    - os: linux
      dist: bionic
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC="--enable-shared-mongoc"
    - os: linux
      dist: xenial
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC=
    - os: osx
      osx_image: xcode10.1
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC="--enable-shared-mongoc"
    - os: osx
      osx_image: xcode9.4
      sudo: required
      env:
       - CONFIG_SHARED_MONGOC=

env:
  global:
    - CI_WORK=`pwd`

addons:
  apt:
    packages:
      - qtbase5-dev
      - qt5-default
      - qt5-qmake
      - qttools5-dev-tools
      - qtdeclarative5-dev
      - qtdeclarative5-dev-tools
      - libqt5sql5
      - libqt5sql5-sqlite
      - libsqlite3-dev
      - libmongoc-dev
      - libbson-dev
      - gdb
      - ruby
      - ruby-dev
      - ruby-all-dev
      - gem

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt mongo-c-driver; brew link --force qt; brew link mongo-c-driver; fi

install:
  - cd $CI_WORK
  - qmake -v
  - ./configure --prefix=/usr/local $CONFIG_SHARED_MONGOC
  - make -j4 -C src
  - sudo make -C src install
  - make -j4 -C tools
  - sudo make -C tools install
  - treefrog -v

before_script:
  - cd $CI_WORK
  - cd tools/tmake/test
  - qmake tmaketest.pro
  - make

script:
  - cd $CI_WORK
  - ./src/test/testall.sh
  - cd $CI_WORK/tools/tmake/test
  - ./tmaketest
  - cd $CI_WORK/tools/test
  - ./releasetest/releasetest
  - if [ "$TRAVIS_OS_NAME" == "linux" ] && grep -i "xenial" /etc/os-release >/dev/null 2>&1; then sudo gem install jekyll bundler; cd $CI_WORK/docs; bundle install; bundle exec jekyll build; fi
{'fraction_non_alphanumeric': 0.11853573503776874, 'fraction_numerical': 0.011040092969203951, 'mean_word_length': 1.925233644859813, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7674153', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1357, 'n_words': 291}