Permalink
Browse files

Add a release test for minimum perl version

  • Loading branch information...
1 parent c29d5ab commit 4fc983e57f57e078ecc484dd193810b9f2d49760 @dolmen committed Oct 14, 2012
Showing with 14 additions and 1 deletion.
  1. +1 −1 .travis.yml
  2. +13 −0 t/93-perl-version.t
View
@@ -7,7 +7,7 @@ perl:
# Modules nécessaire pour le mode auteur (Build update)
# TODO utiliser "./Build installdeps" car on l'a surchargé pour les
# dépendances auteur
-before_install: cpanm --notest LWP::UserAgent HTTP::Date File::Copy File::Spec Spreadsheet::ParseExcel Regexp::Assemble::Compressed Template Test::Pod Test::Pod::Coverage Test::Kwalitee
+before_install: cpanm --notest LWP::UserAgent HTTP::Date File::Copy File::Spec Spreadsheet::ParseExcel Regexp::Assemble::Compressed Template Test::Pod Test::Pod::Coverage Test::Kwalitee Test::MinimumVersion Regexp::Parser
script:
- perl Build.PL
- ./Build manifest
View
@@ -0,0 +1,13 @@
+use strict;
+use warnings;
+use Test::More (skip_all => 'only for release testing')x!
+ ($ENV{AUTHOR_TESTING} || $ENV{RELEASE_TESTING});
+
+use Test::MinimumVersion 0.101080;
+
+# Unfortunately Perl::MinimumVersion does not check regexp features
+# (?^: ... ) interests us
+# But Regexp::Parser can check if the regexp can be parsed by 5.8.4
+
+minimum_version_ok('lib/Number/Phone/FR/Full.pm', '5.008');
+done_testing;

0 comments on commit 4fc983e

Please sign in to comment.