blob: 5963c26e0139c51e5c198a723212a93964e6a62b [file] [log] [blame]
aminasyanca523522019-11-08 11:45:17 +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"
aminasyanca523522019-11-08 11:45:17 +040011
12git clone ${HORIZON_LIB_REPO}
aminasyandf85c7f2019-12-02 18:55:49 +040013cd horizon/ ; git checkout mcp/xenial/rocky
aminasyanca523522019-11-08 11:45:17 +040014