<commit_before>sudo: false

language: cpp

os:
    - linux

addons:
  apt:
    sources:
        - ubuntu-toolchain-r-test
    packages:
        - inkscape
        - doxygen
        - gcc-4.8
        - g++-4.8

before_install:
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

install:
    - python ./config/travis/installDependencies.py
    - export DELIGHT_PACKAGE=3delight-12.0.12-Linux-x86_64
    - curl -A Mozilla/4.0 http://www.3delight.com/downloads/free/$DELIGHT_PACKAGE.tar.xz > $DELIGHT_PACKAGE.tar.xz
    - tar -xf $DELIGHT_PACKAGE.tar.xz
    - export DELIGHT=`pwd`/$DELIGHT_PACKAGE/3delight/Linux-x86_64
    - export LD_LIBRARY_PATH=$DELIGHT/lib:$LD_LIBRARY_PATH
    - export DL_SHADERS_PATH=$DELIGHT/shaders
    - export DL_DISPLAYS_PATH=$DELIGHT/displays
    - export PATH=$DELIGHT/bin:$PATH
    - if [ -n "$COMPILER_VERSION" ]; then export CXX="${CXX}-${COMPILER_VERSION}"; fi

script:
    - scons -j 2 install CXX=$CXX CXXSTD=$CXXSTD ENV_VARS_TO_IMPORT=PATH RMAN_ROOT=$DELIGHT
    # Preload libSegFault when running tests, so we get stack
    # traces from any crashes.
    - export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
    - source ./config/travis/runGafferTest GafferTest
    - source ./config/travis/runGafferTest GafferUITest
    - source ./config/travis/runGafferTest GafferDispatchTest
    - source ./config/travis/runGafferTest GafferDispatchUITest
    - source ./config/travis/runGafferTest GafferCortexTest
    - source ./config/travis/runGafferTest GafferCortexUITest
    - source ./config/travis/runGafferTest GafferImageTest
    - source ./config/travis/runGafferTest GafferImageUITest
    - source ./config/travis/runGafferTest GafferSceneTest
    - source ./config/travis/runGafferTest GafferSceneUITest
    - source ./config/travis/runGafferTest GafferOSLTest
    - source ./config/travis/runGafferTest GafferOSLUITest
    - source ./config/travis/runGafferTest GafferRenderManTest
    - source ./config/travis/runGafferTest GafferRenderManUITest
    - source ./config/travis/runGafferTest GafferAppleseedTest
    - source ./config/travis/runGafferTest GafferAppleseedUITest
    - ./config/travis/printTestResults

compiler:
    - gcc
    - clang

env:
    - COMPILER_VERSION= CXXSTD=c++98
    - COMPILER_VERSION=4.8 CXXSTD=c++98
    - COMPILER_VERSION=4.8 CXXSTD=c++11

matrix:
    exclude:
        - compiler: clang
          env: COMPILER_VERSION=4.8 CXXSTD=c++98
        - compiler: clang
          env: COMPILER_VERSION=4.8 CXXSTD=c++11<commit_msg>Travis : Add testing with GCC 5.<commit_after>sudo: false

language: cpp

os:
    - linux

addons:
  apt:
    sources:
        - ubuntu-toolchain-r-test
    packages:
        - inkscape
        - doxygen
        - gcc-4.8
        - g++-4.8
        - gcc-5
        - g++-5

before_install:
    - export DISPLAY=:99.0
    - sh -e /etc/init.d/xvfb start

install:
    - python ./config/travis/installDependencies.py
    - export DELIGHT_PACKAGE=3delight-12.0.12-Linux-x86_64
    - curl -A Mozilla/4.0 http://www.3delight.com/downloads/free/$DELIGHT_PACKAGE.tar.xz > $DELIGHT_PACKAGE.tar.xz
    - tar -xf $DELIGHT_PACKAGE.tar.xz
    - export DELIGHT=`pwd`/$DELIGHT_PACKAGE/3delight/Linux-x86_64
    - export LD_LIBRARY_PATH=$DELIGHT/lib:$LD_LIBRARY_PATH
    - export DL_SHADERS_PATH=$DELIGHT/shaders
    - export DL_DISPLAYS_PATH=$DELIGHT/displays
    - export PATH=$DELIGHT/bin:$PATH
    - if [ -n "$COMPILER_VERSION" ]; then export CXX="${CXX}-${COMPILER_VERSION}"; fi

script:
    - scons -j 2 install CXX=$CXX CXXSTD=$CXXSTD ENV_VARS_TO_IMPORT=PATH RMAN_ROOT=$DELIGHT
    # Preload libSegFault when running tests, so we get stack
    # traces from any crashes.
    - export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
    - source ./config/travis/runGafferTest GafferTest
    - source ./config/travis/runGafferTest GafferUITest
    - source ./config/travis/runGafferTest GafferDispatchTest
    - source ./config/travis/runGafferTest GafferDispatchUITest
    - source ./config/travis/runGafferTest GafferCortexTest
    - source ./config/travis/runGafferTest GafferCortexUITest
    - source ./config/travis/runGafferTest GafferImageTest
    - source ./config/travis/runGafferTest GafferImageUITest
    - source ./config/travis/runGafferTest GafferSceneTest
    - source ./config/travis/runGafferTest GafferSceneUITest
    - source ./config/travis/runGafferTest GafferOSLTest
    - source ./config/travis/runGafferTest GafferOSLUITest
    - source ./config/travis/runGafferTest GafferRenderManTest
    - source ./config/travis/runGafferTest GafferRenderManUITest
    - source ./config/travis/runGafferTest GafferAppleseedTest
    - source ./config/travis/runGafferTest GafferAppleseedUITest
    - ./config/travis/printTestResults

compiler:
    - gcc
    - clang

env:
    - COMPILER_VERSION= CXXSTD=c++98
    - COMPILER_VERSION=4.8 CXXSTD=c++98
    - COMPILER_VERSION=4.8 CXXSTD=c++11
    - COMPILER_VERSION=5 CXXSTD=c++11

matrix:
    exclude:
        - compiler: clang
          env: COMPILER_VERSION=4.8 CXXSTD=c++98
        - compiler: clang
          env: COMPILER_VERSION=4.8 CXXSTD=c++11
        - compiler: clang
          env: COMPILER_VERSION=5 CXXSTD=c++11
{'fraction_non_alphanumeric': 0.10741885625965997, 'fraction_numerical': 0.020285935085007728, 'mean_word_length': 2.9428789032749427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4954469', 'n_tokens_mistral': 2048, 'n_tokens_neox': 1943, 'n_words': 307}