Skip to content

Commit 35d86eb

Browse files
committed
tests: Mount source tree into container read-only
The release workflow now builds the dist tarball by itself, so the container test can be completely read-only. This avoids unintended *.pyc/egg-info clutter on the host.
1 parent 6848068 commit 35d86eb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

tests/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ else
88
RUNC="sudo docker"
99
fi
1010

11-
$RUNC run --interactive --rm --volume `pwd`:/source --workdir /source docker.io/"$IMAGE" /bin/sh tests/run-${IMAGE%:*}
11+
$RUNC run --interactive --rm --volume `pwd`:/source:ro --workdir /source docker.io/"$IMAGE" /bin/sh tests/run-${IMAGE%:*}

tests/run-ubuntu

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,3 @@ wait
3535
3636
./setup.py sdist
3737
EOF
38-
39-
# copy release tarball to outside; for bind mounts only
40-
[ ! -d /source ] || cp -r /tmp/source/dist /source/

0 commit comments

Comments
 (0)