aminasyan | ca52352 | 2019-11-08 11:45:17 +0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | #Clone Horizon for running tests |
| 4 | |
| 5 | set -ex |
| 6 | |
| 7 | GERRIT_SCHEME=${GERRIT_SCHEME:-$(git remote -v | sed -n -e 's|^origin[[:space:]]\+\([[:alpha:]]\+\)://\([a-z0-9\-]\+\)@\([a-z.:0-9]\+\)/.*(fetch)$|\1|p')} |
| 8 | GERRIT_NAME=${GERRIT_NAME:-$(git remote -v | sed -n -e 's|^origin[[:space:]]\+\([[:alpha:]]\+\)://\([a-z0-9\-]\+\)@\([a-z.:0-9]\+\)/.*(fetch)$|\2|p')} |
| 9 | GERRIT_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')} |
| 10 | HORIZON_LIB_REPO="${GERRIT_SCHEME}://${GERRIT_NAME}@${GERRIT_HOST_PORT}/packaging/sources/horizon" |
aminasyan | ca52352 | 2019-11-08 11:45:17 +0400 | [diff] [blame] | 11 | |
| 12 | git clone ${HORIZON_LIB_REPO} |
aminasyan | df85c7f | 2019-12-02 18:55:49 +0400 | [diff] [blame^] | 13 | cd horizon/ ; git checkout mcp/xenial/rocky |
aminasyan | ca52352 | 2019-11-08 11:45:17 +0400 | [diff] [blame] | 14 | |