<commit_before>language: c

compiler:
  - gcc
  - clang

os:
  - linux
  - osx

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start mongodb; fi

before_script:
  # Add an IPv6 config - see the corresponding Travis issue
  # https://github.com/travis-ci/travis-ci/issues/8361
  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
    fi

services: mongodb

env:
  - CFLAGS="$CFLAGS -Werror -Wno-cast-align"

addons:
  apt:
    packages:
      - gdb

script:
  - sudo sh -c 'echo "\n::1 localhost\n" >> /etc/hosts'
  - ulimit -a
  - ulimit -c unlimited || true
  - ./autogen.sh --enable-debug --enable-maintainer-flags --disable-automatic-init-and-cleanup --with-libbson=bundled
  - make
  - make test TEST_ARGS=""


after_failure:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gdb; fi
  - find /cores . -name \*core\* -exec ./.travis.scripts/debug-core.sh {} \;

<commit_msg>CDRIVER-1349 build with cmake in Travis<commit_after>language: c

compiler:
  - gcc
  - clang

os:
  - linux
  - osx

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mongodb; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew services start mongodb; fi

before_script:
  # Add an IPv6 config - see the corresponding Travis issue
  # https://github.com/travis-ci/travis-ci/issues/8361
  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
    fi

services: mongodb

env:
  - CFLAGS="$CFLAGS -Werror -Wno-cast-align"

addons:
  apt:
    packages:
      - gdb

script:
  - sudo sh -c 'echo "\n::1 localhost\n" >> /etc/hosts'
  - ulimit -a
  - ulimit -c unlimited || true
  - cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_MAINTAINER_FLAGS=ON -ENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF .
  - make -j 8
  - make test ARGS="-V"


after_failure:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gdb; fi
  - find /cores . -name \*core\* -exec ./.travis.scripts/debug-core.sh {} \;


{'fraction_non_alphanumeric': 0.16406598305840392, 'fraction_numerical': 0.010254123941150245, 'mean_word_length': 2.816326530612245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '1812728', 'n_tokens_mistral': 921, 'n_tokens_neox': 884, 'n_words': 212}