<commit_before>#!/bin/sh

THISDIR=`pwd`

git clone https://github.com/appleseedhq/travis_linux_deps.git
DEPSDIR=$THISDIR/travis_linux_deps

mkdir build
cd build

cmake \
    -D WITH_CLI=OFF \
    -D WITH_STUDIO=OFF \
    -D WITH_TOOLS=OFF \
    -D WITH_ALEMBIC=OFF \
    -D WITH_PYTHON=OFF \
    -D WITH_DISNEY_MATERIAL=ON \
    -D WITH_OSL=ON \
    -D Boost_USE_STATIC_LIBS=OFF \
    -D BOOST_INCLUDEDIR=$DEPSDIR/include/boost_1_55_0 \
    -D BOOST_LIBRARYDIR=$DEPSDIR/lib/ \
    -D Boost_CHRONO_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_chrono-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_DATE_TIME_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_date_time-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_FILESYSTEM_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_filesystem-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_REGEX_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_regex-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_SYSTEM_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_system-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_THREAD_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_thread-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_WAVE_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_wave-gcc48-mt-1_55.so.1.55.0 \
    -D USE_EXTERNAL_EXR=ON \
    -D IMATH_INCLUDE_DIR=$DEPSDIR/include \
    -D IMATH_HALF_LIBRARY=$DEPSDIR/lib/libHalf.so.12 \
    -D IMATH_IEX_LIBRARY=$DEPSDIR/lib/libIex-2_2.so.12 \
    -D IMATH_MATH_LIBRARY=$DEPSDIR/lib/libImath-2_2.so.12 \
    -D OPENEXR_INCLUDE_DIR=$DEPSDIR/include \
    -D OPENEXR_THREADS_LIBRARY=$DEPSDIR/lib/libIlmThread-2_2.so.12 \
    -D OPENEXR_IMF_LIBRARY=$DEPSDIR/lib/libIlmImf-2_2.so.22 \
    -D USE_EXTERNAL_SEEXPR=ON \
    -D SEEXPR_INCLUDE_DIR=$DEPSDIR/include \
    -D SEEXPR_LIBRARY=$DEPSDIR/libSeExpr.so \
    -D USE_EXTERNAL_OIIO=ON \
    -D OPENIMAGEIO_INCLUDE_DIR=$DEPSDIR/include \
    -D OPENIMAGEIO_LIBRARY=$DEPSDIR/lib/libOpenImageIO.so.1.6 \
    -D USE_EXTERNAL_OSL=ON \
    -D OSL_INCLUDE_DIR=$DEPSDIR/include \
    -D OSL_COMP_LIBRARY=$DEPSDIR/lib/liboslcomp.so \
    -D OSL_EXEC_LIBRARY=$DEPSDIR/lib/liboslexec.so \
    -D OSL_QUERY_LIBRARY=$DEPSDIR/lib/liboslquery.so \
    -D OSL_COMPILER=$DEPSDIR/bin/oslc \
    -D OSL_MAKETX=$DEPSDIR/bin/maketx \
    -D OSL_QUERY_INFO=$DEPSDIR/bin/oslinfo \
    -D USE_EXTERNAL_ZLIB=ON \
    -D USE_EXTERNAL_PNG=ON \
    -D USE_EXTERNAL_XERCES=ON \
    -D CMAKE_BUILD_TYPE=Debug \
    ..

make

export LD_LIBRARY_PATH=../sandbox/lib/Debug:$LD_LIBRARY_PATH
../sandbox/bin/Debug/appleseed.cli --run-unit-tests --verbose-unit-tests<commit_msg>Fixed SeExpr lib path for travis builds<commit_after>#!/bin/sh

THISDIR=`pwd`

git clone https://github.com/appleseedhq/travis_linux_deps.git
DEPSDIR=$THISDIR/travis_linux_deps

mkdir build
cd build

cmake \
    -D WITH_CLI=OFF \
    -D WITH_STUDIO=OFF \
    -D WITH_TOOLS=OFF \
    -D WITH_ALEMBIC=OFF \
    -D WITH_PYTHON=OFF \
    -D WITH_DISNEY_MATERIAL=ON \
    -D WITH_OSL=ON \
    -D Boost_USE_STATIC_LIBS=OFF \
    -D BOOST_INCLUDEDIR=$DEPSDIR/include/boost_1_55_0 \
    -D BOOST_LIBRARYDIR=$DEPSDIR/lib/ \
    -D Boost_CHRONO_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_chrono-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_DATE_TIME_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_date_time-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_FILESYSTEM_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_filesystem-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_REGEX_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_regex-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_SYSTEM_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_system-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_THREAD_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_thread-gcc48-mt-1_55.so.1.55.0 \
    -D Boost_WAVE_LIBRARY_DEBUG=$DEPSDIR/lib/libboost_wave-gcc48-mt-1_55.so.1.55.0 \
    -D USE_EXTERNAL_EXR=ON \
    -D IMATH_INCLUDE_DIR=$DEPSDIR/include \
    -D IMATH_HALF_LIBRARY=$DEPSDIR/lib/libHalf.so.12 \
    -D IMATH_IEX_LIBRARY=$DEPSDIR/lib/libIex-2_2.so.12 \
    -D IMATH_MATH_LIBRARY=$DEPSDIR/lib/libImath-2_2.so.12 \
    -D OPENEXR_INCLUDE_DIR=$DEPSDIR/include \
    -D OPENEXR_THREADS_LIBRARY=$DEPSDIR/lib/libIlmThread-2_2.so.12 \
    -D OPENEXR_IMF_LIBRARY=$DEPSDIR/lib/libIlmImf-2_2.so.22 \
    -D USE_EXTERNAL_SEEXPR=ON \
    -D SEEXPR_INCLUDE_DIR=$DEPSDIR/include \
    -D SEEXPR_LIBRARY=$DEPSDIR/lib/libSeExpr.so \
    -D USE_EXTERNAL_OIIO=ON \
    -D OPENIMAGEIO_INCLUDE_DIR=$DEPSDIR/include \
    -D OPENIMAGEIO_LIBRARY=$DEPSDIR/lib/libOpenImageIO.so.1.6 \
    -D USE_EXTERNAL_OSL=ON \
    -D OSL_INCLUDE_DIR=$DEPSDIR/include \
    -D OSL_COMP_LIBRARY=$DEPSDIR/lib/liboslcomp.so \
    -D OSL_EXEC_LIBRARY=$DEPSDIR/lib/liboslexec.so \
    -D OSL_QUERY_LIBRARY=$DEPSDIR/lib/liboslquery.so \
    -D OSL_COMPILER=$DEPSDIR/bin/oslc \
    -D OSL_MAKETX=$DEPSDIR/bin/maketx \
    -D OSL_QUERY_INFO=$DEPSDIR/bin/oslinfo \
    -D USE_EXTERNAL_ZLIB=ON \
    -D USE_EXTERNAL_PNG=ON \
    -D USE_EXTERNAL_XERCES=ON \
    -D CMAKE_BUILD_TYPE=Debug \
    ..

make

export LD_LIBRARY_PATH=../sandbox/lib/Debug:$LD_LIBRARY_PATH
../sandbox/bin/Debug/appleseed.cli --run-unit-tests --verbose-unit-tests
{'fraction_non_alphanumeric': 0.13076295389636883, 'fraction_numerical': 0.03549571603427173, 'mean_word_length': 3.3084358523725834, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3782914', 'n_tokens_mistral': 2431, 'n_tokens_neox': 2258, 'n_words': 211}