6fd2c6507d
Added deployemnt scripts for sahara-ci. Compatible with Ubuntu Xenial. Change-Id: Ic218243efeb6c6aae17faa665755c5e722e10e2b
18 lines
335 B
Bash
Executable File
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
|
|
}
|