1
0
mirror of synced 2026-01-13 15:17:30 +00:00

Travis CI before_install: Make sure we can execute scripts in /tmp/

Those build failures with Perl 5.10 seem to neither be related to
xen-tools nor to Perl but to how the git repo is unpacked on Travis CI
as executable bits are either missing or /tmp/ is mounted with
"noexec".

So add some code to before_install to 1) output some debug information
on that issue and 2) abort early if executing scripts in /tmp/ fails.
This commit is contained in:
Axel Beckert 2020-12-20 19:45:18 +01:00
parent 0da2ed1365
commit 06b3faa1bf

View File

@ -21,6 +21,9 @@ matrix:
- perl: blead
before_install:
- mount
- ls -ld /tmp/
- echo "#!/bin/sh\necho Scripts in /tmp work.\n" > /tmp/test-executable-in-tmp && chmod -c 755 /tmp/test-executable-in-tmp && /tmp/test-executable-in-tmp
- sudo apt-get update
- sudo apt-get install devscripts dpkg-dev lsb-release
- eval $(curl https://travis-perl.github.io/init)