blob: 0167dd2e86235ea604bc1117eb6def72fc5e1691 [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"
aminasyan6b777392019-11-08 11:59:37 +040011
12git clone ${HORIZON_LIB_REPO}
aminasyan2c06e412020-03-20 14:57:18 +040013cd horizon/ ; git checkout origin/mcp/train
aminasyan6b777392019-11-08 11:59:37 +040014