<commit_before>language: cpp
sudo: required
dist: trusty

compiler:
  - gcc
  - clang

before_install:
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y > /dev/null
  - sudo add-apt-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main" -y > /dev/null
  - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - > /dev/null
  - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - > /dev/null
  - sudo apt-get update > /dev/null
  - if [ "$CXX" = "g++" ]; then sudo apt-get install g++-5 -y > /dev/null; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
  - if [ "$CXX" = "clang++" ]; then sudo apt-get install clang-3.8 --force-yes -y > /dev/null; fi
  - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
  - if [ "${TIDY}" = "true" ]; then sudo apt-get install clang-tidy-3.8 clang-format-3.8 clang-3.8 --force-yes -y > /dev/null; fi
  - sudo apt-get install libunwind8-dev libsdl2-dev libboost-locale-dev libboost-filesystem-dev -y > /dev/null
  - ${CXX} --version
  - ${CC} --version
  - mkdir ~/dependency-prefix
  - export PKG_CONFIG_PATH=~/dependency-prefix/lib/pkgconfig
  - wget http://s2.jonnyh.net/pub/cd_minimal.iso.xz -O data/cd.iso.xz
  - xz -d data/cd.iso.xz
# setup some default settings
  - mkdir -p ~/.local/share/OpenApoc
  - echo "Resource.LocalCDPath=${PWD}/data/cd.iso" > ~/.local/share/OpenApoc/settings.cfg
  - echo "Resource.LocalDataDir=${PWD}/data/" >> ~/.local/share/OpenApoc/settings.cfg

env:
  - BUILD_TYPE="RelWithDebInfo" TIDY="false" SANITIZE="false"
  - BUILD_TYPE="RelWithDebInfo" TIDY="true" SANITIZE="false"
  - BUILD_TYPE="RelWithDebInfo" TIDY="false" SANITIZE="true"
<commit_msg>Travis: Disable sanitize leaks causing test failure<commit_after>language: cpp
sudo: required
dist: trusty

compiler:
  - gcc
  - clang

before_install:
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y > /dev/null
  - sudo add-apt-repository "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main" -y > /dev/null
  - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - > /dev/null
  - wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add - > /dev/null
  - sudo apt-get update > /dev/null
  - if [ "$CXX" = "g++" ]; then sudo apt-get install g++-5 -y > /dev/null; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
  - if [ "$CXX" = "clang++" ]; then sudo apt-get install clang-3.8 --force-yes -y > /dev/null; fi
  - if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
  - if [ "${TIDY}" = "true" ]; then sudo apt-get install clang-tidy-3.8 clang-format-3.8 clang-3.8 --force-yes -y > /dev/null; fi
  - sudo apt-get install libunwind8-dev libsdl2-dev libboost-locale-dev libboost-filesystem-dev -y > /dev/null
  - ${CXX} --version
  - ${CC} --version
  - mkdir ~/dependency-prefix
  - export PKG_CONFIG_PATH=~/dependency-prefix/lib/pkgconfig
  - wget http://s2.jonnyh.net/pub/cd_minimal.iso.xz -O data/cd.iso.xz
  - xz -d data/cd.iso.xz
# setup some default settings
  - mkdir -p ~/.local/share/OpenApoc
  - echo "Resource.LocalCDPath=${PWD}/data/cd.iso" > ~/.local/share/OpenApoc/settings.cfg
  - echo "Resource.LocalDataDir=${PWD}/data/" >> ~/.local/share/OpenApoc/settings.cfg
  - export LSAN_OPTIONS="exitcode=0"

env:
  - BUILD_TYPE="RelWithDebInfo" TIDY="false" SANITIZE="false"
  - BUILD_TYPE="RelWithDebInfo" TIDY="true" SANITIZE="false"
  - BUILD_TYPE="RelWithDebInfo" TIDY="false" SANITIZE="true"

{'fraction_non_alphanumeric': 0.19098894871068292, 'fraction_numerical': 0.011618022102578634, 'mean_word_length': 3.1190198366394397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '5271429', 'n_tokens_mistral': 1490, 'n_tokens_neox': 1416, 'n_words': 286}