From b08100816851f604baa775059b08285c6b5055a6 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 22 Nov 2017 21:31:51 -0500 Subject: [PATCH] Rename launch.py to bootstrap.py bootstrap will also prebuild all project. Signed-off-by: Jonathan Rajotte --- lttng_ivc/{launch.py => bootstrap.py} | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename lttng_ivc/{launch.py => bootstrap.py} (93%) diff --git a/lttng_ivc/launch.py b/lttng_ivc/bootstrap.py similarity index 93% rename from lttng_ivc/launch.py rename to lttng_ivc/bootstrap.py index b66f3a6..ec44f2b 100644 --- a/lttng_ivc/launch.py +++ b/lttng_ivc/bootstrap.py @@ -1,4 +1,4 @@ -import pytest +import sys import os import yaml import logging @@ -6,7 +6,11 @@ import hashlib from git import Repo +dir_path = os.path.dirname(os.path.realpath(__file__)) +sys.path.insert(0, os.path.join(dir_path, "..")) + import settings as Settings +import utils.ProjectFactory as ProjectFactory def is_ref_branch(repo, ref): try: @@ -158,3 +162,8 @@ for project, markers in config.items(): with open(Settings.run_configuration_file, 'w') as run_configuration: yaml.dump(runnable_markers, run_configuration, default_flow_style=False) + +# Prebuild all projects +for key in runnable_markers: + logger_git.info('Preparing and building {}'.format(key)) + ProjectFactory.get_precook(key) -- 2.34.1