From b1b64fba1f54d3b1ee2656c13884471cf2b1b3a5 Mon Sep 17 00:00:00 2001 From: umarcor Date: Tue, 29 Dec 2020 01:04:37 +0100 Subject: ci: install requirements in temporary containers --- dist/ci-run.sh | 7 +++++-- doc/requirements.txt | 2 +- testsuite/requirements.txt | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/ci-run.sh b/dist/ci-run.sh index 928fa201a..e71229194 100755 --- a/dist/ci-run.sh +++ b/dist/ci-run.sh @@ -427,9 +427,12 @@ ci_run () { case "$GHDL_IMAGE_TAG" in *ubuntu*|*buster*) GHDL_TEST_IMAGE="test:$GHDL_IMAGE_TAG-py" - docker build -t "$GHDL_TEST_IMAGE" - <<-EOF + docker build -t "$GHDL_TEST_IMAGE" . -f- <<-EOF +# syntax=docker/dockerfile:experimental FROM ghdl/ghdl:$GHDL_IMAGE_TAG -RUN apt update -qq && apt install -y python3 +RUN apt update -qq && apt install -y python3 python3-pip +RUN --mount=type=bind,src=./,target=/tmp/ghdl/ \ + pip3 install -r /tmp/ghdl/testsuite/requirements.txt EOF ;; *) diff --git a/doc/requirements.txt b/doc/requirements.txt index e632e6afd..1c95fd25e 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,4 +1,4 @@ -#-r ../requirements.txt +-r ../pyGHDL/requirements.txt sphinx>=3.0.0 recommonmark python-dateutil diff --git a/testsuite/requirements.txt b/testsuite/requirements.txt index f7196c036..ce54b669b 100644 --- a/testsuite/requirements.txt +++ b/testsuite/requirements.txt @@ -1,4 +1,4 @@ --r ../requirements.txt +-r ../pyGHDL/requirements.txt # Coverage collection Coverage>=5.3 -- cgit v1.2.3