aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ci-run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dist/ci-run.sh')
-rwxr-xr-xdist/ci-run.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/dist/ci-run.sh b/dist/ci-run.sh
index eb82c7e99..70e6b6d44 100755
--- a/dist/ci-run.sh
+++ b/dist/ci-run.sh
@@ -424,6 +424,18 @@ ci_run () {
else
# Build ghdl/ghdl:$GHDL_IMAGE_TAG image
build_img_ghdl
+ case "$GHDL_IMAGE_TAG" in
+ *ubuntu*)
+ GHDL_TEST_IMAGE="test:$GHDL_IMAGE_TAG-py"
+ docker build -t "$GHDL_TEST_IMAGE" - <<-EOF
+FROM ghdl/ghdl:$GHDL_IMAGE_TAG
+RUN apt update -qq && apt install -y python3
+EOF
+ ;;
+ *)
+ GHDL_TEST_IMAGE="ghdl/ghdl:$GHDL_IMAGE_TAG"
+ ;;
+ esac
# Run test in docker container
tests="sanity pyunit"
if [ "x$ISGPL" != "xtrue" ]; then
@@ -434,7 +446,7 @@ ci_run () {
tests="$tests synth"
fi
tests="$tests vpi"
- $RUN "ghdl/ghdl:$GHDL_IMAGE_TAG" bash -c "GHDL=ghdl ./testsuite/testsuite.sh $tests"
+ $RUN "$GHDL_TEST_IMAGE" bash -c "GHDL=ghdl ./testsuite/testsuite.sh $tests"
fi
if [ ! -f testsuite/test_ok ]; then