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/2bb466f2
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/2bb466f2
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/2bb466f2

Branch: refs/heads/0.6
Commit: 2bb466f227317877f6d40b22b000202bb812a2fb
Parents: 52531b7
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:05:48 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/2bb466f2/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 7bd87b7..f2d18e2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,13 +22,10 @@ matrix:
   include:
     - env: CLOWNFISH_HOST=c
     - 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/2bb466f2/devel/bin/travis-test.sh
----------------------------------------------------------------------
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index a41c7e6..226d1b1 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -32,8 +32,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