aboutsummaryrefslogtreecommitdiffstats
path: root/lib/integration
blob: 42e49c370a0267667349cb1dbebd0140c5c0f72e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2017-2018
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#############################################################################

source /var/onap/functions

# install_integration - Function that installs dependecies for Integration projects
function install_integration {
    echo "Install CSIT dependencies.."
    install_packages python-virtualenv unzip sshuttle netcat libffi-dev libssl-dev
    install_python_package tox robotframework docker-compose
    install_python_package --upgrade requests robotframework-requests
    install_docker

    echo "Running All CSIT tests..."
    pushd ${src_folders[integration]}/test/csit
    ./run-all-tests.sh
    popd
}

# init_integration() - Init Integration projects
function init_integration {
    if [[ "$clone_repo" == "True" ]]; then
        clone_repos "integration"
    fi

    if [[ "$skip_install" == "False" ]]; then
        install_integration
    fi
}