diff options
Diffstat (limited to 'build-aux/travis-install')
-rwxr-xr-x | build-aux/travis-install | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/build-aux/travis-install b/build-aux/travis-install new file mode 100755 index 0000000..d818ab2 --- /dev/null +++ b/build-aux/travis-install @@ -0,0 +1,36 @@ +#! /bin/sh + +set -e + +if [ "$OLDEST_SUPPORTED_PERL" = 1 ]; then + command -V perlbrew + command -V lsb_release + + PERLV=5.14 + URL=https://storage.googleapis.com/travis-ci-language-archives/perl/binaries + URL="$URL/$(lsb_release -is | tr A-Z a-z)/$(lsb_release -rs)/$(uname -m)" + URL="$URL/perl-${PERLV}.tar.bz2" + set -x + wget -nv $URL + sudo tar xjf perl-${PERLV}.tar.bz2 --directory / + rm perl-${PERLV}.tar.bz2 + perlbrew list + perlbrew switch ${PERLV} + [ -f "$PERLBREW_HOME/init" ] || { ls -l "$PERLBREW_HOME"; exit 1; } + + . "$PERLBREW_HOME/init" + PATH="$(echo $PATH | sed "s%:$PERLBREW_ROOT/bin:%:$PERLBREW_PATH:%")" + command -v perl +fi + +if [ "$DISTCHECK" = 1 ]; then + set -x + cpanm -S -i \ + Perl::Critic \ + Perl::Critic::Freenode \ + Perl::Critic::Pulp \ + Perl::Critic::TooMuchCode \ + Perl::Tidy + perltidy --version + perlcritic --version +fi |