Skip to content

Commit

Permalink
travisey stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Jul 11, 2014
1 parent 4c8988f commit 7bcf985
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .travis.yml
@@ -1,22 +1,30 @@
language: perl
env:
- PERL_TYPES_STANDARD_XS=0
- PERL_TYPES_STANDARD_XS=1
perl:
- "5.6.1"
- "5.6.2"
- "5.8.9"
- "5.8.9_thr"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20.0"
- "5.20.0_thr"
- "blead"
matrix:
include:
- perl: "5.6.1"
env: PERL_TYPES_STANDARD_XS=0
- perl: "5.6.2"
env: PERL_TYPES_STANDARD_XS=0
- perl: "5.8.9"
env: PERL_TYPES_STANDARD_XS=0
- perl: "5.8.9_thr"
env: PERL_TYPES_STANDARD_XS=0
- perl: "5.18"
env: EXTENDED_TESTING=1 COVERAGE=1
env: PERL_TYPES_STANDARD_XS=0 EXTENDED_TESTING=1 COVERAGE=1
- perl: "5.8.1"
env: EXTENDED_TESTING=1
env: PERL_TYPES_STANDARD_XS=0 EXTENDED_TESTING=1
install:
- cpanm -n Test::Requires Test::Fatal Test::LeakTrace
- cpanm Exporter::Tiny
Expand Down
6 changes: 5 additions & 1 deletion lib/Types/Standard.pm
Expand Up @@ -29,7 +29,11 @@ BEGIN {
0;

my $use_xs = 0;
$try_xs and eval { require Type::Tiny::XS; $use_xs++ };
$try_xs and eval {
require Type::Tiny::XS;
'Type::Tiny::XS'->VERSION('0.002');
$use_xs++;
};

*_USE_XS = $use_xs
? sub () { !!1 }
Expand Down
4 changes: 4 additions & 0 deletions meta/makefile.pret
Expand Up @@ -10,6 +10,10 @@
deps:on "perl 5.010001"^^deps:CpanId;
comment "For smartmatch operator overloading; and to avoid some pre-5.10 hacks."@en;
];
deps:runtime-recommendation [
deps:on "Type::Tiny::XS 0.002"^^deps:CpanId;
comment "Make stuff faster (I think)."@en;
];
deps:runtime-requirement [
deps:on "Exporter::Tiny 0.026"^^deps:CpanId;
comment "This module was spun off from the Type-Tiny distribution."@en;
Expand Down

0 comments on commit 7bcf985

Please sign in to comment.