aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ci-run.sh
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2020-12-29 01:04:37 +0100
committerumarcor <unai.martinezcorral@ehu.eus>2020-12-29 01:40:20 +0100
commitb1b64fba1f54d3b1ee2656c13884471cf2b1b3a5 (patch)
tree072121065ec1d049a81a95bcae943ea5a5f833a0 /dist/ci-run.sh
parent3427a61b81b542bb683e8f1e5dd376aaa184e575 (diff)
downloadghdl-b1b64fba1f54d3b1ee2656c13884471cf2b1b3a5.tar.gz
ghdl-b1b64fba1f54d3b1ee2656c13884471cf2b1b3a5.tar.bz2
ghdl-b1b64fba1f54d3b1ee2656c13884471cf2b1b3a5.zip
ci: install requirements in temporary containers
Diffstat (limited to 'dist/ci-run.sh')
-rwxr-xr-xdist/ci-run.sh7
1 files changed, 5 insertions, 2 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
;;
*)