From: Dylan William Hardison Date: Mon, 4 Dec 2017 20:56:44 +0000 (-0500) Subject: no bug - avoid running compile tests in CI (#284) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e07c354707f39dbc26cecbbc8cdf9c70879e70c;p=thirdparty%2Fbugzilla.git no bug - avoid running compile tests in CI (#284) * skip tests in CI * fix --- diff --git a/t/001compile.t b/t/001compile.t index 30b83da1d..e81162056 100644 --- a/t/001compile.t +++ b/t/001compile.t @@ -17,10 +17,14 @@ use warnings; use lib qw(. lib local/lib/perl5 t); use Config; use Support::Files; -use Test::More tests => scalar(@Support::Files::testitems) - + scalar(@Support::Files::test_files); +use Test::More; +BEGIN { + if ($ENV{CI}) { + plan skip_all => 'Not running compile tests in CI.'; + exit; + } + plan tests => @Support::Files::testitems + @Support::Files::test_files; -BEGIN { use_ok('Bugzilla::Constants'); use_ok('Bugzilla::Install::Requirements'); use_ok('Bugzilla');