Commit dad8d273 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod CI: readability improvement in HGitaly build script

Regrouping constants for executables. Also nicer for trying
the script with a local modification.

--HG--
branch : heptapod-stable
parent da1c785a0720
...@@ -15,6 +15,9 @@ import subprocess ...@@ -15,6 +15,9 @@ import subprocess
import sys import sys
INTERPRETER = 'python3.8' INTERPRETER = 'python3.8'
HG_BIN = '/usr/local/bin/hg'
PIP_BIN = 'pip3.8'
RELEASE_BRANCH_RX = re.compile(r'heptapod-\d+-\d+') RELEASE_BRANCH_RX = re.compile(r'heptapod-\d+-\d+')
CWD = os.getcwd() CWD = os.getcwd()
...@@ -25,9 +28,6 @@ subprocess.check_call(['mkdir', '-p', BASE_DIR]) ...@@ -25,9 +28,6 @@ subprocess.check_call(['mkdir', '-p', BASE_DIR])
PY_HEPTAPOD_CLONE_PATH = os.path.join(BASE_DIR, 'py-heptapod') PY_HEPTAPOD_CLONE_PATH = os.path.join(BASE_DIR, 'py-heptapod')
HGITALY_CLONE_PATH = os.path.join(BASE_DIR, 'hgitaly') HGITALY_CLONE_PATH = os.path.join(BASE_DIR, 'hgitaly')
HG_BIN = '/usr/local/bin/hg'
PIP_BIN = 'pip3.8'
def write_config(req_hgrc_path): def write_config(req_hgrc_path):
local_hgrc_path = os.path.join(CWD, 'config', 'tests.hgrc') local_hgrc_path = os.path.join(CWD, 'config', 'tests.hgrc')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment