Commit | Line | Data |
c5dda91c |
1 | BREWVER=${TRAVIS_PERL_VERSION/_*/} |
2 | BREWOPTS= |
3 | [[ "${TRAVIS_PERL_VERSION}_" =~ '_thr_' ]] && BREWOPTS="$BREWOPTS -Duseithreads" |
4 | |
5 | if ! perlbrew use | grep -q "Currently using $TRAVIS_PERL_VERSION"; then |
89d924bf |
6 | echo "Building perl $TRAVIS_PERL_VERSION..." |
7 | PERLBUILD=$(perlbrew install --as $TRAVIS_PERL_VERSION --notest --noman --verbose $BREWOPTS -j 2 $BREWVER 2>&1) |
c5dda91c |
8 | perlbrew use $TRAVIS_PERL_VERSION |
9 | if ! perlbrew use | grep -q "Currently using $TRAVIS_PERL_VERSION"; then |
10 | echo "Unable to switch to $TRAVIS_PERL_VERSION - compilation failed...?" 1>&2 |
89d924bf |
11 | echo "$PERLBUILD" 1>&2 |
c5dda91c |
12 | exit 1 |
13 | fi |
14 | fi |
15 | perlbrew install-cpanm -f |