sahara-ci-config/system-configs/functions.sh
Evgeny Sikachev 6fd2c6507d Adding of deployment scripts for sahara-ci
Added deployemnt scripts for sahara-ci. Compatible with
Ubuntu Xenial.

Change-Id: Ic218243efeb6c6aae17faa665755c5e722e10e2b
2016-10-09 20:00:45 +00:00

18 lines
335 B
Bash
Executable File

#!/bin/bash -xe
clone() {
local project_name=$1
local project_dir=$2
git clone https://review.openstack.org/"$project_name" "$project_dir"
}
install_to_venv() {
local project_dir=$1
local venv_name=${2:-"venv"}
local venv_path=$project_dir/$venv_name
virtualenv $venv_path
$venv_path/bin/pip install $project_dir
}