about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/capsule.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/capsule.sh b/scripts/capsule.sh
index 82afe25..956ac8c 100755
--- a/scripts/capsule.sh
+++ b/scripts/capsule.sh
@@ -20,8 +20,14 @@ do
     perlversion=$(perl -v)
     logfile="$report_path/$theperl.txt"
 
-    perl Makefile.PL
-    cpanm --installdeps .
-    make
-    HARNESS_VERBOSE=1 make test >> $logfile  2>&1
+    if [ -f 'dist.ini' ]
+        dzil authordeps | cpanm
+        cpanm --installdeps .
+        HARNESS_VERBOSE=1 dzil test >> $logfile  2>&1
+    else
+        perl Makefile.PL
+        cpanm --installdeps .
+        make
+        HARNESS_VERBOSE=1 make test >> $logfile  2>&1
+    fi
 done