def install_mysql_pcre(dependencies, mysql_service):
    irods_python_ci_utilities.install_os_packages(dependencies)
    local_pcre_git_dir = os.path.expanduser('/lib_mysqludf_preg')
    irods_python_ci_utilities.subprocess_get_output([
        'git', 'clone', 'https://github.com/mysqludf/lib_mysqludf_preg.git',
        local_pcre_git_dir
    ],
                                                    check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['git', 'checkout', 'lib_mysqludf_preg-1.1'],
        cwd=local_pcre_git_dir,
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['autoreconf', '--force', '--install'],
        cwd=local_pcre_git_dir,
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(['./configure'],
                                                    cwd=local_pcre_git_dir,
                                                    check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(['make', 'install'],
                                                    cwd=local_pcre_git_dir,
                                                    check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        'mysql --user=root --password="******" < installdb.sql',
        shell=True,
        cwd=local_pcre_git_dir,
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['systemctl', 'restart', mysql_service], check_rc=True)
예제 #2
0
def install_r_packages():
    install_testing_dependencies()
    irods_python_ci_utilities.install_os_packages(['r-base'])
    # copy source into tmp dir, build it, install it as irods user
    build_dir = os.getcwd()
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'chmod', '-R', '777', build_dir], check_rc=True)
    irods_python_ci_utilities.subprocess_get_output([
        'sudo', 'su', '-', 'irods', '-c',
        'export R_LIBS={0} && cd {0} && R CMD BATCH install-Rcpp.R'.format(
            build_dir)
    ],
                                                    check_rc=True)
    irods_python_ci_utilities.subprocess_get_output([
        'sudo', 'su', '-', 'irods', '-c',
        'export R_LIBS={0} && cd {0} && make r_cmd_pkg'.format(build_dir)
    ],
                                                    check_rc=True)
    irods_python_ci_utilities.subprocess_get_output([
        'sudo', 'su', '-', 'irods', '-c',
        'export R_LIBS={0} && cd {0} && R CMD BATCH install-packages.R'.format(
            build_dir)
    ],
                                                    check_rc=True)
    # sync test files
    irods_python_ci_utilities.subprocess_get_output([
        'sudo', 'su', '-', 'irods', '-c',
        'rsync -r {0}/tests/ /var/lib/irods/tests/pydevtest/'.format(build_dir)
    ],
                                                    check_rc=True)
예제 #3
0
def install_kerberos_packages_apt():
    debconf_settings = '''
krb5-config	krb5-config/read_conf	boolean	true
krb5-admin-server	krb5-admin-server/newrealm	note
krb5-kdc	krb5-kdc/debconf	boolean	true
krb5-admin-server	krb5-admin-server/kadmind	boolean	true
krb5-kdc	krb5-kdc/purge_data_too	boolean	false
krb5-config	krb5-config/add_servers	boolean	true
krb5-config	krb5-config/add_servers_realm	string	EXAMPLE.ORG
krb5-config	krb5-config/default_realm	string	EXAMPLE.ORG
krb5-config	krb5-config/admin_server	string	icat.example.org
krb5-config	krb5-config/kerberos_servers	string	icat.example.org
'''
    with tempfile.NamedTemporaryFile() as f:
        f.write(debconf_settings)
        f.flush()
        irods_python_ci_utilities.subprocess_get_output(
            ['sudo', 'debconf-set-selections', f.name], check_rc=True)
    irods_python_ci_utilities.install_os_packages(
        ['krb5-admin-server', 'krb5-kdc'])
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'systemctl', 'enable', 'krb5-admin-server.service'],
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'systemctl', 'enable', 'krb5-kdc.service'], check_rc=True)
예제 #4
0
def install_building_dependencies(externals_directory):
    externals_list = [
        "irods-externals-cmake3.11.4-0", "irods-externals-avro1.9.0-0",
        "irods-externals-boost1.67.0-0", "irods-externals-clang-runtime6.0-0",
        "irods-externals-clang6.0-0", "irods-externals-cppzmq4.2.3-0",
        "irods-externals-cpr1.3.0-1", "irods-externals-elasticlient0.1.0-1",
        "irods-externals-jansson2.7-0", "irods-externals-json3.7.3-0",
        "irods-externals-libarchive3.3.2-1", "irods-externals-zeromq4-14.1.6-0"
    ]
    if externals_directory == 'None' or externals_directory is None:
        irods_python_ci_utilities.install_irods_core_dev_repository()
        irods_python_ci_utilities.install_os_packages(externals_list)
    else:
        package_suffix = irods_python_ci_utilities.get_package_suffix()
        os_specific_directory = irods_python_ci_utilities.append_os_specific_directory(
            externals_directory)
        externals = []
        for irods_externals in externals_list:
            externals.append(
                glob.glob(
                    os.path.join(
                        os_specific_directory,
                        irods_externals + '*.{0}'.format(package_suffix)))[0])
        irods_python_ci_utilities.install_os_packages_from_files(externals)
    add_cmake_to_front_of_path()
    install_os_specific_dependencies()
예제 #5
0
def install_kerberos_packages_yum():
    irods_python_ci_utilities.install_os_packages(
        ['krb5-server', 'krb5-libs', 'krb5-workstation'])
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'systemctl', 'enable', 'krb5kdc.service'], check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'systemctl', 'enable', 'kadmin.service'], check_rc=True)
def install_testing_dependencies_apt():
    irods_python_ci_utilities.install_os_packages([
        'git', 'python-prettytable', 'python-coverage', 'python-dev',
        'libkrb5-dev'
    ])
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', '-H', 'pip', 'install', 'gssapi'], check_rc=True)
def install_building_dependencies(externals_directory):
    externals_list = [
        'irods-externals-avro1.11.0-0', 'irods-externals-boost1.78.0-0',
        'irods-externals-clang-runtime13.0.0-0',
        'irods-externals-clang13.0.0-0', 'irods-externals-cmake3.21.4-0',
        'irods-externals-fmt8.1.1-0', 'irods-externals-json3.10.4-0',
        'irods-externals-libarchive3.5.2-0'
    ]

    if externals_directory == 'None' or externals_directory is None:
        irods_python_ci_utilities.install_irods_core_dev_repository()
        irods_python_ci_utilities.install_os_packages(externals_list)
    else:
        package_suffix = irods_python_ci_utilities.get_package_suffix()
        os_specific_directory = irods_python_ci_utilities.append_os_specific_directory(
            externals_directory)
        externals = []
        for irods_externals in externals_list:
            externals.append(
                glob.glob(
                    os.path.join(
                        os_specific_directory,
                        irods_externals + '*.{0}'.format(package_suffix)))[0])
        irods_python_ci_utilities.install_os_packages_from_files(externals)
    add_cmake_to_front_of_path()
    install_os_specific_dependencies()
예제 #8
0
def install_building_dependencies_redhat():
    base = ['git', 'python-devel', 'help2man', 'unixODBC', 'fuse-devel', 'curl-devel', 'bzip2-devel', 'zlib-devel', 'pam-devel', 'openssl-devel', 'libxml2-devel', 'krb5-devel', 'unixODBC-devel', 'perl-JSON', 'python-psutil', 'fakeroot']
    version_specific = {
        '6': [],
        '7': ['mysql++-devel'],
    }
    ci.install_os_packages(base + version_specific[ci.get_distribution_version_major()])
예제 #9
0
def install_irods_externals_dependencies(irods_git_dir):
    ci.install_irods_core_dev_repository()
    with open(os.path.join(irods_git_dir, 'externals.json')) as f:
        d = json.load(f)
    ci.install_os_packages([d['cmake']] + d['others'])
    cmake_path = os.path.join('/opt/irods-externals', d['cmake'].split('irods-externals-')[1], 'bin')
    os.environ['PATH'] = ':'.join([cmake_path, os.environ['PATH']])
def install_os_specific_dependencies_yum():
    packages_to_install = [
        'bzip2-devel', 'curl-devel', 'fakeroot', 'help2man', 'openssl-devel',
        'pam-devel', 'python-devel', 'unixODBC', 'unixODBC-devel', 'zlib-devel',
    ]
    if irods_python_ci_utilities.get_distribution_version_major() == '7':
        packages_to_install.append('mysql++-devel')
    irods_python_ci_utilities.install_os_packages(packages_to_install)
def install_build_prerequisites():
    irods_python_ci_utilities.subprocess_get_output(['sudo', 'pip', 'install', 'boto3', '--upgrade'], check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(['sudo', '-EH', 'pip', 'install', 'unittest-xml-reporting==1.14.0'])
    if irods_python_ci_utilities.get_distribution() == 'Ubuntu': # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])
예제 #12
0
def install_os_specific_dependencies_yum():
    packages_to_install = [
        'bzip2-devel', 'curl-devel', 'fakeroot', 'help2man', 'openssl-devel',
        'pam-devel', 'python-devel', 'unixODBC', 'unixODBC-devel', 'zlib-devel',
    ]
    if irods_python_ci_utilities.get_distribution_version_major() == '7':
        packages_to_install.append('mysql++-devel')
    irods_python_ci_utilities.install_os_packages(packages_to_install)
예제 #13
0
def install_build_prerequisites():
    global Java_Home
    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
    java_version_check = re.compile('openjdk version[^\d]*1\.8\.',re.MULTILINE)
    java_version_text = '\n'.join(irods_python_ci_utilities.subprocess_get_output(['/usr/bin/java','-version'])[1:3])
    java_real_bin = os.path.realpath('/usr/bin/java')
    Java_Home = os.path.sep.join((java_real_bin.split(os.path.sep))[:-2])
    if not java_version_check.search( java_version_text ):
        raise WrongJavaAsDefault
def configure_client_yum(database):
    if database == 'postgres':
        irods_python_ci_utilities.install_os_packages(
            ['postgresql-odbc', 'unixODBC', 'unixODBC-devel', 'super'])
    elif database == 'mysql' or database == 'mariadb':
        pass
    elif database == 'oracle':
        install_oracle_dependencies()
        install_oracle_client()
예제 #15
0
def install_build_prerequisites():
    irods_python_ci_utilities.subprocess_get_output(['sudo', 'pip', 'install', 'boto3', '--upgrade'], check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(['sudo', 'pip', 'install', 'minio==6.0.2', '--upgrade'], check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(['sudo', '-EH', 'pip', 'install', 'unittest-xml-reporting==1.14.0'])
    if irods_python_ci_utilities.get_distribution() == 'Ubuntu': # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])
예제 #16
0
def install_building_dependencies():
    irods_python_ci_utilities.install_irods_core_dev_repository()
    install_cmake_and_add_to_front_of_path()
    irods_python_ci_utilities.install_os_packages([
        "irods-externals-avro1.7.7-0", "irods-externals-boost1.60.0-0",
        "irods-externals-clang-runtime3.8-0", "irods-externals-clang3.8-0",
        "irods-externals-cppzmq4.1-0", "irods-externals-jansson2.7-0",
        "irods-externals-libarchive3.1.2-0", "irods-externals-zeromq4-14.1.3-0"
    ])
    install_os_specific_dependencies()
예제 #17
0
def install_build_prerequisites_yum():
    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
    hpss_packages = [
        '/projects/irods/vsphere-testing/externals/hpss/hpss-lib-7.4.3.2-0.el6.x86_64.rpm',
        '/projects/irods/vsphere-testing/externals/hpss/hpss-lib-devel-7.4.3.2-0.el6.x86_64.rpm',
        '/projects/irods/vsphere-testing/externals/hpss/hpss-clnt-7.4.3.2-0.el6.x86_64.rpm'
    ]
    irods_python_ci_utilities.install_os_packages_from_files(hpss_packages)
    irods_python_ci_utilities.make_symbolic_link_as_root(
        '/hpss_src/hpss-7.4.3.2-0.el6', '/opt/hpss')
def install_building_dependencies():
    irods_python_ci_utilities.install_irods_core_dev_repository()
    install_cmake_and_add_to_front_of_path()
    irods_python_ci_utilities.install_os_packages([
        'irods-externals-avro1.9.0-0', 'irods-externals-boost1.67.0-0',
        'irods-externals-catch22.3.0-0', 'irods-externals-clang-runtime6.0-0',
        'irods-externals-clang6.0-0', 'irods-externals-cppzmq4.2.3-0',
        'irods-externals-json3.7.3-0', 'irods-externals-libarchive3.3.2-1',
        "irods-externals-spdlog0.17.0-0", 'irods-externals-zeromq4-14.1.6-0'
    ])
    install_os_specific_dependencies()
예제 #19
0
def install_testing_dependencies():
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', '-EH', 'pip', 'install', 'unittest-xml-reporting==1.14.0'])
    globus_toolkit_package_name = get_test_prerequisites()
    irods_python_ci_utilities.subprocess_get_output([
        'wget', 'http://toolkit.globus.org/ftppub/gt6/installers/repo/{0}'.
        format(globus_toolkit_package_name)
    ],
                                                    check_rc=True)
    irods_python_ci_utilities.install_os_packages_from_files(
        [globus_toolkit_package_name])
    irods_python_ci_utilities.install_os_packages(['globus-gsi'])
def install_build_prerequisites_apt():
    if irods_python_ci_utilities.get_distribution(
    ) == 'Ubuntu':  # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(
                ['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output([
                'sudo', 'add-apt-repository', '-y',
                'ppa:ubuntu-toolchain-r/test'
            ],
                                                            check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])
def install_oracle_dependencies_apt():
    tar_file = os.path.expanduser('/oci.tar')
    irods_python_ci_utilities.subprocess_get_output([
        'wget', 'http://people.renci.org/~jasonc/irods/oci.tar', '-O', tar_file
    ],
                                                    check_rc=True)
    tar_dir = os.path.expanduser('/oci')
    os.mkdir(tar_dir)
    irods_python_ci_utilities.subprocess_get_output(
        ['tar', '-xf', tar_file, '-C', tar_dir], check_rc=True)
    Popen(['apt-get', 'update']).wait()
    irods_python_ci_utilities.install_os_packages(['alien', 'libaio1'])
    irods_python_ci_utilities.subprocess_get_output(
        'alien -i {0}/*'.format(tar_dir), shell=True, check_rc=True)
def install_building_dependencies():
    irods_python_ci_utilities.install_irods_core_dev_repository()
    install_cmake_and_add_to_front_of_path()
    irods_python_ci_utilities.install_os_packages([
        "irods-externals-avropre190cpp17-0",
        "irods-externals-boost1.67.0-0",
        "irods-externals-catch22.3.0-0",
        "irods-externals-clang-runtime6.0-0",
        "irods-externals-clang6.0-0",
        "irods-externals-cppzmq4.2.3-0",
        "irods-externals-json3.1.2-0",
        "irods-externals-libarchive3.3.2-1",
        "irods-externals-spdlog0.17.0-0",
        "irods-externals-zeromq4-14.1.6-0"
        ])
    install_os_specific_dependencies()
def install_testing_dependencies():
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'apt-add-repository', '-y', 'ppa:webupd8team/java'],
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'apt-get', 'update'], check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        'echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections',
        shell=True,
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        'echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections',
        shell=True,
        check_rc=True)
    irods_python_ci_utilities.subprocess_get_output(
        ['sudo', 'apt-get', 'install', '-y', 'oracle-java8-installer'],
        check_rc=True)
    irods_python_ci_utilities.install_os_packages(['git', 'maven2'])
def install_oracle_dependencies_yum():
    tar_file = os.path.expanduser('/oci.tar')
    irods_python_ci_utilities.subprocess_get_output([
        'wget', 'http://people.renci.org/~jasonc/irods/oci.tar', '-O', tar_file
    ],
                                                    check_rc=True)
    tar_dir = os.path.expanduser('/oci')
    os.mkdir(tar_dir)
    irods_python_ci_utilities.subprocess_get_output(
        ['tar', '-xf', tar_file, '-C', tar_dir], check_rc=True)
    irods_python_ci_utilities.install_os_packages(['unixODBC'])
    irods_python_ci_utilities.subprocess_get_output(
        'rpm -i --nodeps {0}/*'.format(tar_dir), shell=True, check_rc=True)
    irods_python_ci_utilities.subprocess_get_output([
        'ln', '-s', '/usr/lib64/libodbcinst.so.2',
        '/usr/lib64/libodbcinst.so.1'
    ],
                                                    check_rc=True)
예제 #25
0
def install_build_prerequisites():
    global Java_Home
    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
    java_version_check = re.compile('openjdk version[^\d]*1\.8\.',
                                    re.MULTILINE)
    java_version_text = '\n'.join(
        irods_python_ci_utilities.subprocess_get_output(
            ['/usr/bin/java', '-version'])[1:3])
    java_real_bin = os.path.realpath('/usr/bin/java')
    Java_Home = os.path.sep.join((java_real_bin.split(os.path.sep))[:-2])
    if not java_version_check.search(java_version_text):
        raise WrongJavaAsDefault
    if irods_python_ci_utilities.get_distribution(
    ) == 'Ubuntu':  # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(
                ['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output([
                'sudo', 'add-apt-repository', '-y',
                'ppa:ubuntu-toolchain-r/test'
            ],
                                                            check_rc=True)
            irods_python_ci_utilities.subprocess_get_output([
                'sudo', 'update-java-alternatives', '--set',
                'java-1.8.0-openjdk-amd64'
            ])
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])
def install_os_specific_dependencies_apt():
    if irods_python_ci_utilities.get_distribution(
    ) == 'Ubuntu':  # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(
                ['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output([
                'sudo', 'add-apt-repository', '-y',
                'ppa:ubuntu-toolchain-r/test'
            ],
                                                            check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])

    irods_python_ci_utilities.install_os_packages([
        'fakeroot',
        'help2man',
        'libbz2-dev',
        'libcurl4-gnutls-dev',
        'libkrb5-dev',
        'libpam0g-dev',
        'libssl-dev',
        'make',
        'python-dev',
        'unixodbc',
        'unixodbc-dev',
        'zlib1g-dev',
    ])
def install_os_specific_dependencies_apt():
    if irods_python_ci_utilities.get_distribution() == 'Ubuntu': # cmake from externals requires newer libstdc++ on ub12
        irods_python_ci_utilities.subprocess_get_output(['sudo', 'apt-get', 'update'], check_rc=True)
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])
    irods_python_ci_utilities.install_os_packages(['make', 'libssl-dev', 'libxml2-dev', 'libcurl4-gnutls-dev', 'gcc'])
def install_build_prerequisites():
    irods_python_ci_utilities.subprocess_get_output(['sudo', '-EH', 'pip', 'install', 'unittest-xml-reporting==1.14.0'])

    if irods_python_ci_utilities.get_distribution() == 'Ubuntu': # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'update-java-alternatives', '--set', 'java-1.7.0-openjdk-amd64'])
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])

    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
def install_os_specific_dependencies_apt():
    if irods_python_ci_utilities.get_distribution() == 'Ubuntu': # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])

    irods_python_ci_utilities.install_os_packages([
        'fakeroot', 'help2man', 'libbz2-dev', 'libcurl4-gnutls-dev', 'libkrb5-dev', 'libpam0g-dev',
        'libssl-dev', 'make', 'python-dev', 'unixodbc', 'unixodbc-dev', 'zlib1g-dev',
    ])
예제 #30
0
def install_build_prerequisites_apt():
    if irods_python_ci_utilities.get_distribution() == 'Ubuntu': # cmake from externals requires newer libstdc++ on ub12
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.install_os_packages(['python-software-properties'])
            irods_python_ci_utilities.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
            irods_python_ci_utilities.install_os_packages(['libstdc++6'])
    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
    if irods_python_ci_utilities.get_distribution() == 'Ubuntu':
        if irods_python_ci_utilities.get_distribution_version_major() == '12':
            irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib/libglobus_callout.so.0', '/usr/lib/libglobus_callout.so')
            irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib/libglobus_gss_assist.so.3', '/usr/lib/libglobus_gss_assist.so')
        elif irods_python_ci_utilities.get_distribution_version_major() == '14':
            irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib/x86_64-linux-gnu/libglobus_callout.so.0', '/usr/lib/x86_64-linux-gnu/libglobus_callout.so')
            irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib/x86_64-linux-gnu/libglobus_gss_assist.so.3', '/usr/lib/x86_64-linux-gnu/libglobus_gss_assist.so')
        elif irods_python_ci_utilities.get_distribution_version_major() == '16':
            irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib/x86_64-linux-gnu/libglobus_callout.so.0', '/usr/lib/x86_64-linux-gnu/libglobus_callout.so')
            irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib/x86_64-linux-gnu/libglobus_gss_assist.so.3', '/usr/lib/x86_64-linux-gnu/libglobus_gss_assist.so')
예제 #31
0
def install_database_plugin_dependencies():
    packages = {
        'Ubuntu': ['unixodbc', 'odbc-postgresql', 'postgresql-client', 'super', 'libc6'],
    }
    ci.install_os_packages(packages[ci.get_distribution()])
예제 #32
0
def install_building_dependencies_suse():
    ci.subprocess_get_output(['sudo', 'zypper', 'addrepo', 'http://download.opensuse.org/repositories/devel:tools/openSUSE_13.2/devel:tools.repo'], check_rc=True)
    ci.subprocess_get_output(['sudo', 'zypper', '--gpg-auto-import-keys', 'refresh'], check_rc=True)
    ci.install_os_packages(['git', 'python-devel', 'help2man', 'unixODBC', 'fuse-devel', 'libcurl-devel', 'libbz2-devel', 'libopenssl-devel', 'libxml2-devel', 'krb5-devel', 'perl-JSON', 'unixODBC-devel', 'python-psutil', 'fakeroot'])
def install_testing_dependencies():
    irods_python_ci_utilities.subprocess_get_output(['sudo', '-EH', 'pip', 'install', 'unittest-xml-reporting==1.14.0'])
    globus_toolkit_package_name = get_test_prerequisites()
    irods_python_ci_utilities.subprocess_get_output(['wget', 'http://toolkit.globus.org/ftppub/gt6/installers/repo/{0}'.format(globus_toolkit_package_name)], check_rc=True)
    irods_python_ci_utilities.install_os_packages_from_files([globus_toolkit_package_name])
    irods_python_ci_utilities.install_os_packages(['globus-gsi'])
def install_building_dependencies_debian():
    ci.install_os_packages(['git', 'g++', 'make', 'python-dev', 'help2man', 'unixodbc', 'libfuse-dev', 'libcurl4-gnutls-dev', 'libbz2-dev', 'zlib1g-dev', 'libpam0g-dev', 'libssl-dev', 'libxml2-dev', 'libkrb5-dev', 'unixodbc-dev', 'libjson-perl', 'python-psutil', 'fakeroot'])
    if ci.get_distribution_version_major() == '12':
        ci.install_os_packages(['python-software-properties'])
        ci.subprocess_get_output(['sudo', 'add-apt-repository', '-y', 'ppa:ubuntu-toolchain-r/test'], check_rc=True)
        ci.install_os_packages(['libstdc++6'])
def install_testing_dependencies():
    ci.subprocess_get_output(['sudo', '-E', 'pip2', 'install', '--upgrade', 'unittest-xml-reporting==1.14.0'], check_rc=True)
    if not (ci.get_distribution() == 'Ubuntu' and ci.get_distribution_version_major() == '12'):
        ci.install_os_packages(['python-jsonschema'])
def install_cmake_and_add_to_front_of_path():
    irods_python_ci_utilities.install_os_packages(['irods-externals-cmake3.11.4-0'])
    cmake_path = '/opt/irods-externals/cmake3.11.4-0/bin'
    os.environ['PATH'] = os.pathsep.join([cmake_path, os.environ['PATH']])
def install_testing_dependencies_apt():
    irods_python_ci_utilities.install_os_packages(['git', 'python-prettytable', 'python-coverage', 'python-dev', 'libkrb5-dev'])
    irods_python_ci_utilities.subprocess_get_output(['sudo', '-H', 'pip', 'install', 'gssapi'], check_rc=True)
def install_build_prerequisites_yum():
    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
    irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib64/libglobus_callout.so.0', '/usr/lib64/libglobus_callout.so')
    irods_python_ci_utilities.make_symbolic_link_as_root('/usr/lib64/libglobus_gss_assist.so.3', '/usr/lib64/libglobus_gss_assist.so')
예제 #39
0
def install_cmake_and_add_to_front_of_path():
    irods_python_ci_utilities.install_os_packages(
        ['irods-externals-cmake3.5.2-0'])
    os.environ[
        'PATH'] = '/opt/irods-externals/cmake3.5.2-0/bin' + os.pathsep + os.environ[
            'PATH']
예제 #40
0
def install_build_prerequisites_yum():
    irods_python_ci_utilities.install_os_packages(get_build_prerequisites())
def install_cmake_and_add_to_front_of_path():
    irods_python_ci_utilities.install_os_packages(['irods-externals-cmake3.5.2-0'])
    os.environ['PATH'] = '/opt/irods-externals/cmake3.5.2-0/bin' + os.pathsep + os.environ['PATH']