<commit_before>#--------------------------------------------------------------------------------------------------
# Configuration script for use with continuous integration service travis-ci.org
#

sudo: required
dist: trusty

language: cpp
compiler:
    - gcc
    - clang
os:
    - linux
    - osx

env:
    matrix:
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="None"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="Debug"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="RelWithDebInfo"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="Release"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="MinSizeRel"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="None"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="Debug"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="RelWithDebInfo"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="Release"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="MinSizeRel"

addons:
    apt: 
        sources:
            - boost-latest
            - ubuntu-toolchain-r-test
        packages:
            - libboost1.55-all-dev
            - libglew-dev
            - libxi-dev
            - libxmu-dev
            - freeglut3-dev


before_install:
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew install glew ;fi
script:

    - export COMPILER_FLAGS="-msse4.1"
    - if [ "$STD" = "CPP11" ]; then export COMPILER_FLAGS="${COMPILER_FLAGS} -std=c++11"; fi
    - if [ "$STD" = "CPP14" ]; then export COMPILER_FLAGS="${COMPILER_FLAGS} -std=c++1y"; fi
    - echo ${COMPILER_FLAGS}

    - mkdir -p build
    - cd build
    - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} "-DCMAKE_CXX_FLAGS=${COMPILER_FLAGS}" -DVSNRAY_ENABLE_EXAMPLES=ON
    - make VERBOSE=1
    - ctest -E 'unittests|surface_.*_illegal_integral_2|vector._pack_illegal_integral|vector._unpack_illegal_integral'
    - sudo make install<commit_msg>Execute unit tests on travis<commit_after>#--------------------------------------------------------------------------------------------------
# Configuration script for use with continuous integration service travis-ci.org
#

sudo: required
dist: trusty

language: cpp
compiler:
    - gcc
    - clang
os:
    - linux
    - osx

env:
    matrix:
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="None"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="Debug"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="RelWithDebInfo"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="Release"
        - GCC_VER="4.8" STD="CPP11" BUILD_TYPE="MinSizeRel"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="None"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="Debug"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="RelWithDebInfo"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="Release"
        - GCC_VER="4.8" STD="CPP14" BUILD_TYPE="MinSizeRel"

addons:
    apt: 
        sources:
            - boost-latest
            - ubuntu-toolchain-r-test
        packages:
            - libboost1.55-all-dev
            - libglew-dev
            - libxi-dev
            - libxmu-dev
            - freeglut3-dev


before_install:
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then travis_retry brew install glew ;fi
script:

    - export COMPILER_FLAGS="-msse4.1"
    - if [ "$STD" = "CPP11" ]; then export COMPILER_FLAGS="${COMPILER_FLAGS} -std=c++11"; fi
    - if [ "$STD" = "CPP14" ]; then export COMPILER_FLAGS="${COMPILER_FLAGS} -std=c++1y"; fi
    - echo ${COMPILER_FLAGS}

    - mkdir -p build
    - cd build
    - cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} "-DCMAKE_CXX_FLAGS=${COMPILER_FLAGS}" -DVSNRAY_ENABLE_EXAMPLES=ON
    - make VERBOSE=1
    - ctest -E 'surface_.*_illegal_integral_2|vector._pack_illegal_integral|vector._unpack_illegal_integral'
    - sudo make install
{'fraction_non_alphanumeric': 0.18839793982108974, 'fraction_numerical': 0.029818378964489023, 'mean_word_length': 2.167381974248927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7674213', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1319, 'n_words': 229}