<commit_before>#!/bin/bash

progdir=${0%/*}

if [[ $TRAVIS_OS_NAME == linux ]]; then
    LIBVIRT=ON
    LIBCGROUP=ON
else
    LIBVIRT=OFF
    LIBCGROUP=OFF
fi
if [[ -n $DOCKER_IMAGE ]]; then
    BUILD_TESTING=TRUE
else
    BUILD_TESTING=FALSE
fi

cat > "$progdir/env.sh" <<__END__
export CMAKE_OPTIONS=(
    -DPROPER:BOOL=$PROPER
    -DUW_BUILD:BOOL=$UW_BUILD
    -D_DEBUG:BOOL=TRUE
    -DCMAKE_SKIP_RPATH:BOOL=ON
    -DHAVE_EXT_GSOAP:BOOL=OFF
    -DWITH_GSOAP:BOOL=OFF
    -DHAVE_EXT_CURL:BOOL=ON
    -DHAVE_EXT_OPENSSL:BOOL=ON
    -DHAVE_EXT_BOOST:BOOL=ON
    -DHAVE_EXT_GLOBUS:BOOL=$GLOBUS
    -DWITH_GLOBUS:BOOL=$GLOBUS
    -DWITH_SCITOKENS=$SCITOKENS
    -DHAVE_EXT_KRB5:BOOL=ON
    -DHAVE_EXT_LIBVIRT:BOOL=$LIBVIRT
    -DHAVE_EXT_LIBXML2:BOOL=ON
    -DHAVE_EXT_OPENSSL:BOOL=ON
    -DHAVE_EXT_PCRE:BOOL=ON
    -DHAVE_EXT_VOMS:BOOL=$VOMS
    -DWITH_VOMS:BOOL=$VOMS
    -DWITH_LIBCGROUP:BOOL=$LIBCGROUP
    -DWANT_CONTRIB:BOOL=OFF
    -DWITH_BOSCO:BOOL=OFF
    -DWITH_PYTHON_BINDINGS:BOOL=OFF
    -DWITH_CAMPUSFACTORY:BOOL=OFF
    -DBUILD_TESTING:BOOL=$BUILD_TESTING
)

export RPM_DEPENDENCIES=(
    systemtap-sdt-devel
    gcc-gfortran
    patch
    c-ares-devel
    autoconf
    automake
    libtool
    perl-Time-HiRes
    perl-Archive-Tar
    perl-XML-Parser
    perl-Digest-MD5
    gcc-c++
    make
    cmake
    flex
    byacc
    pcre-devel
    openssl-devel
    krb5-devel
    libvirt-devel
    bind-utils
    m4
    libX11-devel
    libXScrnSaver-devel
    curl-devel
    expat-devel
    openldap-devel
    python-devel
    boost-devel<commit_msg>(#7071) Remove gfortran dependency from Travis build<commit_after>#!/bin/bash

progdir=${0%/*}

if [[ $TRAVIS_OS_NAME == linux ]]; then
    LIBVIRT=ON
    LIBCGROUP=ON
else
    LIBVIRT=OFF
    LIBCGROUP=OFF
fi
if [[ -n $DOCKER_IMAGE ]]; then
    BUILD_TESTING=TRUE
else
    BUILD_TESTING=FALSE
fi

cat > "$progdir/env.sh" <<__END__
export CMAKE_OPTIONS=(
    -DPROPER:BOOL=$PROPER
    -DUW_BUILD:BOOL=$UW_BUILD
    -D_DEBUG:BOOL=TRUE
    -DCMAKE_SKIP_RPATH:BOOL=ON
    -DHAVE_EXT_GSOAP:BOOL=OFF
    -DWITH_GSOAP:BOOL=OFF
    -DHAVE_EXT_CURL:BOOL=ON
    -DHAVE_EXT_OPENSSL:BOOL=ON
    -DHAVE_EXT_BOOST:BOOL=ON
    -DHAVE_EXT_GLOBUS:BOOL=$GLOBUS
    -DWITH_GLOBUS:BOOL=$GLOBUS
    -DWITH_SCITOKENS=$SCITOKENS
    -DHAVE_EXT_KRB5:BOOL=ON
    -DHAVE_EXT_LIBVIRT:BOOL=$LIBVIRT
    -DHAVE_EXT_LIBXML2:BOOL=ON
    -DHAVE_EXT_OPENSSL:BOOL=ON
    -DHAVE_EXT_PCRE:BOOL=ON
    -DHAVE_EXT_VOMS:BOOL=$VOMS
    -DWITH_VOMS:BOOL=$VOMS
    -DWITH_LIBCGROUP:BOOL=$LIBCGROUP
    -DWANT_CONTRIB:BOOL=OFF
    -DWITH_BOSCO:BOOL=OFF
    -DWITH_PYTHON_BINDINGS:BOOL=OFF
    -DWITH_CAMPUSFACTORY:BOOL=OFF
    -DBUILD_TESTING:BOOL=$BUILD_TESTING
)

export RPM_DEPENDENCIES=(
    systemtap-sdt-devel
    patch
    c-ares-devel
    autoconf
    automake
    libtool
    perl-Time-HiRes
    perl-Archive-Tar
    perl-XML-Parser
    perl-Digest-MD5
    gcc-c++
    make
    cmake
    flex
    byacc
    pcre-devel
    openssl-devel
    krb5-devel
    libvirt-devel
    bind-utils
    m4
    libX11-devel
    libXScrnSaver-devel
    curl-devel
    expat-devel
    openldap-devel
    python-devel
    boost-devel
{'fraction_non_alphanumeric': 0.10254777070063695, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 3.0424710424710426, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4304594', 'n_tokens_mistral': 1449, 'n_tokens_neox': 1340, 'n_words': 166}