hgitaly-test-spawn 477 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# This script is used only in CI
set -eu

# CI base image has Mercurial, installed system-wide by pip3 (Python 3.8)
HG=/usr/local/bin/hg
PY_HEPTAPOD_CLONE_PATH=hgitaly/py-heptapod
export HGRCPATH=config/tests.hgrc:${PY_HEPTAPOD_CLONE_PATH}/heptapod/required.hgrc

echo "Starting HGitaly server"
set -x
$HG --config extensions.hgitaly= \
    hgitaly-serve \
    --repositories-root $PWD/tmp/tests/repositories \
    --listen unix:tmp/tests/hgitaly/hgitaly.socket &