summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..3611047
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,32 @@
+dist: trusty
+language: perl
+perl:
+ - "5.8"
+ - "5.24"
+matrix:
+ include:
+ - perl: 5.8
+ env: JSON_XS_VERSION=4.00
+ - perl: 5.8
+ env: JSON_XS_VERSION=3.02
+ - perl: 5.8
+ env: JSON_XS_VERSION=2.34
+ - perl: 5.8
+ env: JSON_PP_VERSION=2.97001
+ - perl: 5.8
+ env: JSON_PP_VERSION=2.27400
+ - perl: 5.8
+ env: JSON_PP_VERSION=2.27101
+ - perl: 5.8
+ env: CPANEL_JSON_XS_VERSION=3.0218
+ - perl: 5.8
+ env: CPANEL_JSON_XS_VERSION=4.08
+before_install:
+ - test $JSON_PP_VERSION && cpanm -n JSON::XS@$JSON_XS_VERSION || true
+ - test $JSON_XS_VERSION && cpanm -n JSON::XS@$JSON_XS_VERSION || true
+ - test $CPANEL_JSON_XS_VERSION && cpanm -n Cpanel::JSON::XS@$CPANEL_JSON_XS_VERSION || true
+script:
+ - if test ! $JSON_PP_VERSION && test ! $JSON_XS_VERSION && test ! $CPANEL_JSON_XS_VERSION; then perl Makefile.PL && PERL_JSON_BACKEND=JSON::backportPP make test; else true; fi
+ - if test $JSON_PP_VERSION; then perl Makefile.PL && PERL_JSON_BACKEND=JSON::PP make test; else true; fi
+ - if test $JSON_XS_VERSION; then perl Makefile.PL && PERL_JSON_BACKEND=JSON::XS make test; else true; fi
+ - if test $CPANEL_JSON_XS_VERSION; then perl Makefile.PL && PERL_JSON_BACKEND=Cpanel::JSON::XS make test; else true; fi