blob: a67383a67abf4bc91aa823e3e2e2a906369c74db [file] [log] [blame]
aminasyan6b777392019-11-08 11:59:37 +04001#!/bin/bash
2
3#Clone Horizon for running tests
4
5set -ex
6
7GERRIT_SCHEME=${GERRIT_SCHEME:-$(git remote -v | sed -n -e 's|^origin[[:space:]]\+\([[:alpha:]]\+\)://\([a-z0-9\-]\+\)@\([a-z.:0-9]\+\)/.*(fetch)$|\1|p')}
8GERRIT_NAME=${GERRIT_NAME:-$(git remote -v | sed -n -e 's|^origin[[:space:]]\+\([[:alpha:]]\+\)://\([a-z0-9\-]\+\)@\([a-z.:0-9]\+\)/.*(fetch)$|\2|p')}
9GERRIT_HOST_PORT=${GERRIT_HOST_PORT:-$(git remote -v | sed -n -e 's|^origin[[:space:]]\+\([[:alpha:]]\+\)://\([a-z0-9\-]\+\)@\([a-z.:0-9]\+\)/.*(fetch)$|\3|p')}
10HORIZON_LIB_REPO="${GERRIT_SCHEME}://${GERRIT_NAME}@${GERRIT_HOST_PORT}/packaging/sources/horizon"
Artem Minasyan59054f82020-03-24 13:38:09 +040011REQUIREMENTS_REPO="${GERRIT_SCHEME}://${GERRIT_NAME}@${GERRIT_HOST_PORT}/packaging/sources/requirements"
aminasyan6b777392019-11-08 11:59:37 +040012
13git clone ${HORIZON_LIB_REPO}
Pavlo Shchelokovskyy052c90e2020-05-14 14:45:28 +030014cd horizon/ ; git checkout origin/mcp/ussuri
Artem Minasyan59054f82020-03-24 13:38:09 +040015git clone ${REQUIREMENTS_REPO}
Pavlo Shchelokovskyy052c90e2020-05-14 14:45:28 +030016cd requirements/ ; git checkout origin/mcp/ussuri