use Travis CI
Karen Etheridge [Thu, 25 Jan 2018 21:09:18 +0000 (13:09 -0800)]
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..d3cc3e2
--- /dev/null
@@ -0,0 +1,60 @@
+sudo: false
+addons:
+  apt:
+    packages:
+      - aspell
+      - aspell-en
+language: perl
+perl:
+  - "blead"         # builds perl from git
+  - "blead-thr"
+  - "dev"           # latest point release
+  - "dev-thr"
+  - "5.26"
+  - "5.26-thr"
+  - "5.24"
+  - "5.24-thr"
+  - "5.22"
+  - "5.22-thr"
+  - "5.20"
+  - "5.20-thr"
+  - "5.18"
+  - "5.18-thr"
+  - "5.16"
+  - "5.16-thr"
+  - "5.14"
+  - "5.14-thr"
+  - "5.12"
+  - "5.12-thr"
+  - "5.10"
+  - "5.10-thr"
+  - "5.8"
+  - "5.8-thr"
+matrix:
+  allow_failures:
+    - perl: blead
+    - perl: blead-thr
+  include:
+    # modules required for author testing do not build on 5.6
+    - perl: "5.6.2"
+      env: AUTHOR_TESTING=0
+    - perl: "5.6.2-thr"
+      env: AUTHOR_TESTING=0
+env:
+  global:
+    - AUTHOR_TESTING=1
+    - AUTOMATED_TESTING=1
+    - RELEASE_TESTING=0
+before_install:
+  - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
+  - source ~/travis-perl-helpers/init
+  - build-perl
+  - perl -V
+  - build-dist
+  - cd $BUILD_DIR
+install:
+  - cpan-install --deps
+script:
+  - perl Makefile.PL
+  - make
+  - prove -b -r -s -j$(test-jobs) $(test-files)