travis: bind /run and symlink /run/shm -> /dev/shm

This fixes problem with e.g. Python multiprocessing Queue - for POSIX
semaphores to work, the users need r/w access to shared memory
(/dev/shm).

See https://github.com/travis-ci/travis-cookbooks/issues/155
This commit is contained in:
Jakub Jirutka 2017-03-31 12:48:58 +02:00
parent e32f6e2247
commit 5dc3bb2b38

View File

@ -32,3 +32,6 @@ cp /etc/resolv.conf etc/resolv.conf
mount -t proc none proc
mount --rbind /sys sys
mount --rbind /dev dev
mount --rbind /run run
ln -sf /run/shm dev/shm