]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - avoid running compile tests in CI (#284)
authorDylan William Hardison <dylan@hardison.net>
Mon, 4 Dec 2017 20:56:44 +0000 (15:56 -0500)
committerEmma Humphries <emceeaich@users.noreply.github.com>
Mon, 4 Dec 2017 20:56:44 +0000 (12:56 -0800)
* skip tests in CI

* fix

t/001compile.t

index 30b83da1d92e4f29009c8286375104accb10a9f8..e81162056bd26535494ae7356dfd640a16666089 100644 (file)
@@ -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');