Skip to content

Commit d092443

Browse files
committed
restore it
1 parent c93ec40 commit d092443

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hermetic_build/library_generation/tests/integration_tests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class IntegrationTest(unittest.TestCase):
6060
@classmethod
6161
def setUpClass(cls) -> None:
6262
cls.__download_generator_jar(coordinates_file=generator_jar_coordinates_file)
63+
cls.__build_image(docker_file=build_file, cwd=repo_root_dir)
6364

6465
@classmethod
6566
def setUp(cls) -> None:
@@ -194,6 +195,16 @@ def __copy_api_definition(cls, committish: str) -> str:
194195
shutil.rmtree(repo_dest)
195196
return api_temp_dir
196197

198+
@classmethod
199+
def __build_image(cls, docker_file: str, cwd: str):
200+
# we build the docker image without removing intermediate containers, so
201+
# we can re-test more quickly
202+
subprocess.check_call(
203+
["docker", "build", "-f", docker_file, "-t", image_tag, "."],
204+
cwd=cwd,
205+
env=dict(os.environ, DOCKER_BUILDKIT="1"),
206+
)
207+
197208
@classmethod
198209
def __download_generator_jar(cls, coordinates_file: str) -> None:
199210
"""

0 commit comments

Comments
 (0)