95ffbc5ebd
* Use docker to locally run tests on multiple perl versions * perlbrew used to install multiple perls * perl environments bootstrapped when image built * Based on travis configuration * Adds docker folder to MANIFEST.SKIP * Running image runs all tests. * If exit with no error, then all tests pass. * ./build-docker.sh builds stow testing image. * ./test-docker.sh runs stow testing image. * Assumes built with options in build-docker.sh * *-docker.sh scripts added to MANIFEST.SKIP
15 lines
399 B
Bash
Executable file
15 lines
399 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Load perlbrew environment
|
|
. /usr/local/perlbrew/etc/bashrc
|
|
|
|
# For each perl version installed.
|
|
for p_version in $(perlbrew list | sed 's/ //g'); do
|
|
# Switch to it.
|
|
perlbrew use $p_version
|
|
# and install the needed modules.
|
|
/usr/local/perlbrew/bin/cpanm -n Devel::Cover::Report::Coveralls Test::More Test::Output
|
|
done
|
|
|
|
# Cleanup to remove any temp files.
|
|
perlbrew clean
|