Do not pull in Tk if build/test env vars set

This is to fix an ssue when generating POD on travis servers during
testing
This commit is contained in:
Duncan Ferguson 2018-11-25 14:30:03 +00:00
parent 5016a136d6
commit 30a0817d3c

View file

@ -27,6 +27,10 @@ use base qw/ App::ClusterSSH::Base /;
sub import {
my ($class) = @_;
# If we are building or in test here, just exit
# as travis build servers will not have Tk installed
return if $ENV{AUTHOR_TESTING} || $ENV{RELEASE_TESTING};
# Find what windows module we should be using and just overlay it into
# this object
my $package_name = __PACKAGE__ . '::Tk';