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/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/a1c773ba
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/a1c773ba
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/a1c773ba

Branch: refs/heads/0.6
Commit: a1c773baed7d9869cbee6b8eb398c4003ee10238
Parents: 3a9128c
Author: Nick Wellnhofer <wellnho...@aevum.de>
Authored: Thu Feb 8 15:53:57 2018 +0100
Committer: Nick Wellnhofer <wellnho...@aevum.de>
Committed: Thu Feb 8 16:14:09 2018 +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/blob/a1c773ba/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 052e274..cb804d8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,13 +21,10 @@ script: devel/bin/travis-test.sh
 env:
   - LUCY_DEBUG=1 CLOWNFISH_HOST=c
   - LUCY_DEBUG=1 CLOWNFISH_HOST=go
-  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.20
-  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.18
-  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.16
+  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=blead
+  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.24-extras
   - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.14
-  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.12
-  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.10
-  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.8
+  - LUCY_DEBUG=1 CLOWNFISH_HOST=perl PERL_VERSION=5.8.3
 git:
   depth: 10
 

http://git-wip-us.apache.org/repos/asf/lucy/blob/a1c773ba/devel/bin/travis-test.sh
----------------------------------------------------------------------
diff --git a/devel/bin/travis-test.sh b/devel/bin/travis-test.sh
index b60f993..631d6a0 100755
--- a/devel/bin/travis-test.sh
+++ b/devel/bin/travis-test.sh
@@ -47,7 +47,8 @@ test_perl() {
     export PERL_USE_UNSAFE_INC=0
 
     source ~/perl5/perlbrew/etc/bashrc
-    perlbrew switch $PERL_VERSION
+    perlbrew switch $PERL_VERSION ||
+        perlbrew install --switch --notest --noman --thread $PERL_VERSION
     perlbrew list
     export PERL5LIB="$install_dir/lib/perl5"
 

Reply via email to