Fix Travis Perl versions

The Perl versions available under Travis have changed and many older
releases were removed. Make perlbrew build releases that aren't
installed. Reduce the number of tested versions, but add test with
blead.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/120ece10
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/120ece10
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/120ece10

Branch: refs/heads/master
Commit: 120ece10e6bb414607a594cbafd398b4fc49a3a9
Parents: f30ed78
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Tue Nov 14 14:09:06 2017 +0100
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Tue Nov 14 15:04:25 2017 +0100

----------------------------------------------------------------------
 .travis.yml              | 9 +++------
 devel/bin/travis-test.sh | 3 ++-
 2 files changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/120ece10/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 3c150d5..53f7736 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,13 +28,10 @@ matrix:
             - gcc-arm-linux-gnueabihf
             - libc6-dev-armhf-cross
     - env: CLOWNFISH_HOST=go
-    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.20-extras
-    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.18-extras
-    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.16
+    - env: CLOWNFISH_HOST=perl PERL_VERSION=blead
+    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.24-extras
     - env: CLOWNFISH_HOST=perl PERL_VERSION=5.14
-    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.12
-    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.10
-    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.8
+    - env: CLOWNFISH_HOST=perl PERL_VERSION=5.8.3
 #    - env: CLOWNFISH_HOST=python
 #      addons:
 #        apt:

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/120ece10/devel/bin/travis-test.sh
----------------------------------------------------------------------
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index f96f779..78750eb 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -36,8 +36,9 @@ test_c() {
 
 test_perl() {
     source ~/perl5/perlbrew/etc/bashrc
-    perlbrew switch $PERL_VERSION
     perlbrew list
+    perlbrew switch $PERL_VERSION ||
+        perlbrew install --switch --notest --noman --thread $PERL_VERSION
     cd compiler/perl
     cpanm --quiet --installdeps --notest .
     perl Build.PL

Reply via email to