]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - tools/test-build
Speed up Travis builds.
[user/henk/code/inspircd.git] / tools / test-build
index 629e537c4917dcad43beaec921f34241dc3e7f0e..17c98042bc3a933873e859a65bcc66d2dab6b533 100755 (executable)
@@ -56,15 +56,19 @@ foreach my $compiler (@compilers) {
                        say "Failed to configure using the $compiler compiler and the $socketengine socket engine!";
                        exit 1;
                }
-               $ENV{INSPIRCD_STATIC} = 1;
-               if (system 'make', '-j'.get_cpu_count, 'install') {
-                       say "Failed to compile with static modules using the $compiler compiler and the $socketengine socket engine!";
-                       exit 1;
+               if (!defined $ENV{TEST_BUILD_DYNAMIC}) {
+                       $ENV{INSPIRCD_STATIC} = 1;
+                       if (system 'make', '-j'.get_cpu_count, 'install') {
+                               say "Failed to compile with static modules using the $compiler compiler and the $socketengine socket engine!";
+                               exit 1;
+                       }
                }
-               delete $ENV{INSPIRCD_STATIC};
-               if (system 'make', '-j'.get_cpu_count, 'install') {
-                       say "Failed to compile with dynamic modules using the $compiler compiler and the $socketengine socket engine!";
-                       exit 1;
+               if (!defined $ENV{TEST_BUILD_STATIC}) {
+                       delete $ENV{INSPIRCD_STATIC};
+                       if (system 'make', '-j'.get_cpu_count, 'install') {
+                               say "Failed to compile with dynamic modules using the $compiler compiler and the $socketengine socket engine!";
+                               exit 1;
+                       }
                }
                say "Building using the $compiler compiler and the $socketengine socket engine succeeded!";
        }