<commit_before># Mostly based on <NAME>'s range-v3 one:
# https://github.com/ericniebler/range-v3/blob/master/.travis.yml

language: cpp

env:
  global:
    - SIPLASPLAS_GITHUB_USER="Manu343726"
    - SIPLASPLAS_STANDARDESE_BUILD_TARGETS_FIRST=FALSE
    - secure: "<KEY>

matrix:
  include:

  # Build docs
    - env: BUILD_TYPE=Release DEPLOY_DOCS=true CLANG_VERSION=3.7 SIPLASPLAS_BUILD_DOCS=ON SIPLASPLAS_DEPLOY_DOCS=ON
      os: linux
      addons: &clang37
        apt:
          packages:
            - clang-3.7
            - g++-5 # We need an updated stdlibc++ for clang too
            - gcc-5
            - libboost1.55-all-dev # For Standardese
          sources:
            - ubuntu-toolchain-r-test
            - llvm-toolchain-precise-3.7
            - boost-latest

    - env: BUILD_TYPE=Release CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=FALSE
      os: linux
      addons: *clang37

  # Debug, shared libraries
    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 SIPLASPLAS_LIBRARIES_STATIC=FALSE
      os: linux
      addons: *clang37

    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=FALSE
      os: linux
      addons: *clang37

  # Release, static libraries
    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37

    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37

  # Debug, static libraries
    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37

    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37


before_install:
  - if [ "$DEPLOY_DOCS" == "true" ]; then git config --global user.name "siplasplas travis build docs job bot"; fi
  - git submodule update --init --recursive
  - if [ -n "$GCC_VERSION" ]; then export CXX="g++-5" CC="gcc-5"; fi
  - if [ -z "$GCC_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
  - which $CXX
  - which $CC
  - $CXX --version
  - $CC --version
  - if [ -z "$GCC_VERSION" ]; then which clang++ || true; fi
  - |
      if [ "$DEPLOY_DOCS" == "true" ]; then
        export SIPLASPLAS_BUILD_DOCS=ON SIPLASPLAS_DEPLOY_DOCS=ON
      else
        export SIPLASPLAS_BUILD_DOCS=OFF SIPLASPLAS_DEPLOY_DOCS=OFF
      fi

install:

# From <NAME>'s Boost.Hana .travis.yml

############################################################################
# All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
############################################################################
  - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
  - mkdir ${DEPS_DIR} && cd ${DEPS_DIR}

############################################################################
# Install a recent Doxygen
############################################################################
  - |
    if [ "$DEPLOY_DOCS" == "true" ]; then
        DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.linux.bin.tar.gz"
        mkdir doxygen && travis_retry wget --quiet -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen
        export PATH=${DEPS_DIR}/doxygen/bin:${PATH}
    fi

############################################################################
# Install a recent CMake
############################################################################
  - CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
  - mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
  - export PATH=${DEPS_DIR}/cmake/bin:${PATH}

  - cmake --version


  # Finished building deps
  - cd ${TRAVIS_BUILD_DIR}

  # Configure and build project:
  - if [ ! -d build ]; then mkdir build; fi
  - cd build

  - cmake .. -DSIPLASPLAS_BUILD_TESTS=ON
             -DSIPLASPLAS_BUILD_EXAMPLES=ON
             -DSIPLASPLAS_VERBOSE_CONFIG=ON
             -DSIPLASPLAS_CI_BUILD=ON
             -DCMAKE_VERBOSE_MAKEFILE=OFF
             -DBII_BOOST_VERBOSE=ON
             -DCMAKE_BUILD_TYPE=$BUILD_TYPE
             -DSIPLASPLAS_CLANGXX="$(which clang++-${CLANG_VERSION})"
             -DSIPLASPLAS_LIBCLANG_VERSION="${CLANG_VERSION}.0"
             -DSIPLASPLAS_DOWNLOAD_LIBCLANG=TRUE
             -DSIPLASPLAS_CHECK_LIBCLANG_HEADERS=ON
             -DSIPLASPLAS_BUILD_DOCS="$SIPLASPLAS_BUILD_DOCS"
             -DSIPLASPLAS_STANDARDESE_BUILD_TARGETS_FIRST="$SIPLASPLAS_STANDARDESE_BUILD_TARGETS_FIRST"
             -DSIPLASPLAS_DEPLOY_DOCS="$SIPLASPLAS_DEPLOY_DOCS"
             -DSIPLASPLAS_DEPLOY_STANDARDESE_DOCS=ON
             -DSIPLASPLAS_LIBRARIES_STATIC="$SIPLASPLAS_LIBRARIES_STATIC"
             -DSIPLASPLAS_GIT_BRANCH="$TRAVIS_BRANCH"
             -DSIPLASPLAS_GITHUB_USER="$SIPLASPLAS_GITHUB_USER"
             -DSIPLASPLAS_GITHUB_USER_TOKEN="$<PASSWORD>AS_<PASSWORD>"

  - if [ "$DEPLOY_DOCS" != "true" ]; then cmake --build .; fi

script:
  - if [ "$DEPLOY_DOCS" != "true" ]; then make run-tests-all; fi
  - if [ "$DEPLOY_DOCS" != "true" ]; then make run-examples-all; fi
  - if [ "$DEPLOY_DOCS" == "true" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then cmake --build . --target deploy-docs; fi<commit_msg>[#62] Force asserts and enable valgrind in travis builds<commit_after># Mostly based on <NAME>'s range-v3 one:
# https://github.com/ericniebler/range-v3/blob/master/.travis.yml

language: cpp

env:
  global:
    - SIPLASPLAS_GITHUB_USER="Manu343726"
    - SIPLASPLAS_STANDARDESE_BUILD_TARGETS_FIRST=FALSE
    - secure: "<KEY>

matrix:
  include:

  # Build docs
    - env: BUILD_TYPE=Release DEPLOY_DOCS=true CLANG_VERSION=3.7 SIPLASPLAS_BUILD_DOCS=ON SIPLASPLAS_DEPLOY_DOCS=ON
      os: linux
      addons: &clang37
        apt:
          packages:
            - clang-3.7
            - g++-5 # We need an updated stdlibc++ for clang too
            - gcc-5
            - libboost1.55-all-dev # For Standardese
            - valgrind
          sources:
            - ubuntu-toolchain-r-test
            - llvm-toolchain-precise-3.7
            - boost-latest

    - env: BUILD_TYPE=Release CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=FALSE
      os: linux
      addons: *clang37

  # Debug, shared libraries
    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 SIPLASPLAS_LIBRARIES_STATIC=FALSE
      os: linux
      addons: *clang37

    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=FALSE
      os: linux
      addons: *clang37

  # Release, static libraries
    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37

    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37

  # Debug, static libraries
    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37

    - env: BUILD_TYPE=Debug CLANG_VERSION=3.7 GCC_VERSION=5.2.1 SIPLASPLAS_LIBRARIES_STATIC=TRUE
      os: linux
      addons: *clang37


before_install:
  - if [ "$DEPLOY_DOCS" == "true" ]; then git config --global user.name "siplasplas travis build docs job bot"; fi
  - git submodule update --init --recursive
  - if [ -n "$GCC_VERSION" ]; then export CXX="g++-5" CC="gcc-5"; fi
  - if [ -z "$GCC_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
  - which $CXX
  - which $CC
  - $CXX --version
  - $CC --version
  - if [ -z "$GCC_VERSION" ]; then which clang++ || true; fi
  - |
      if [ "$DEPLOY_DOCS" == "true" ]; then
        export SIPLASPLAS_BUILD_DOCS=ON SIPLASPLAS_DEPLOY_DOCS=ON
      else
        export SIPLASPLAS_BUILD_DOCS=OFF SIPLASPLAS_DEPLOY_DOCS=OFF
      fi

install:

# From Louis Dionne's Boost.Hana .travis.yml

############################################################################
# All the dependencies are installed in ${TRAVIS_BUILD_DIR}/deps/
############################################################################
  - DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
  - mkdir ${DEPS_DIR} && cd ${DEPS_DIR}

############################################################################
# Install a recent Doxygen
############################################################################
  - |
    if [ "$DEPLOY_DOCS" == "true" ]; then
        DOXYGEN_URL="http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.11.linux.bin.tar.gz"
        mkdir doxygen && travis_retry wget --quiet -O - ${DOXYGEN_URL} | tar --strip-components=1 -xz -C doxygen
        export PATH=${DEPS_DIR}/doxygen/bin:${PATH}
    fi

############################################################################
# Install a recent CMake
############################################################################
  - CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
  - mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
  - export PATH=${DEPS_DIR}/cmake/bin:${PATH}

  - cmake --version


  # Finished building deps
  - cd ${TRAVIS_BUILD_DIR}

  # Configure and build project:
  - if [ ! -d build ]; then mkdir build; fi
  - cd build

  - cmake .. -DSIPLASPLAS_ENABLE_VALGRIND=ON
             -DSIPLASPLAS_ENABLE_ASSERTS=ON
             -DSIPLASPLAS_BUILD_TESTS=ON
             -DSIPLASPLAS_BUILD_EXAMPLES=ON
             -DSIPLASPLAS_VERBOSE_CONFIG=ON
             -DSIPLASPLAS_CI_BUILD=ON
             -DCMAKE_VERBOSE_MAKEFILE=OFF
             -DBII_BOOST_VERBOSE=ON
             -DCMAKE_BUILD_TYPE=$BUILD_TYPE
             -DSIPLASPLAS_CLANGXX="$(which clang++-${CLANG_VERSION})"
             -DSIPLASPLAS_LIBCLANG_VERSION="${CLANG_VERSION}.0"
             -DSIPLASPLAS_DOWNLOAD_LIBCLANG=TRUE
             -DSIPLASPLAS_CHECK_LIBCLANG_HEADERS=ON
             -DSIPLASPLAS_BUILD_DOCS="$SIPLASPLAS_BUILD_DOCS"
             -DSIPLASPLAS_STANDARDESE_BUILD_TARGETS_FIRST="$SIPLASPLAS_STANDARDESE_BUILD_TARGETS_FIRST"
             -DSIPLASPLAS_DEPLOY_DOCS="$SIPLASPLAS_DEPLOY_DOCS"
             -DSIPLASPLAS_DEPLOY_STANDARDESE_DOCS=ON
             -DSIPLASPLAS_LIBRARIES_STATIC="$SIPLASPLAS_LIBRARIES_STATIC"
             -DSIPLASPLAS_GIT_BRANCH="$TRAVIS_BRANCH"
             -DSIPLASPLAS_GITHUB_USER="$SIPLASPLAS_GITHUB_USER"
             -DSIPLASPLAS_GITHUB_USER_TOKEN="$<PASSWORD>"

  - if [ "$DEPLOY_DOCS" != "true" ]; then cmake --build .; fi

script:
  - if [ "$DEPLOY_DOCS" != "true" ]; then make run-tests-all; fi
  - if [ "$DEPLOY_DOCS" != "true" ]; then make run-examples-all; fi
  - if [ "$DEPLOY_DOCS" == "true" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then cmake --build . --target deploy-docs; fi
{'fraction_non_alphanumeric': 0.19376391982182628, 'fraction_numerical': 0.014847809948032665, 'mean_word_length': 3.140222819823281, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '6662013', 'n_tokens_mistral': 4148, 'n_tokens_neox': 3814, 'n_words': 651}