diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-09-16 10:55:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 10:55:58 +0200 |
commit | d8a41d73a329b72a7d997a1808007f5de38b68d7 (patch) | |
tree | 774711e431feb32f928676431a588a0e71c25d92 /tools/test-build | |
parent | 05953e35b03a8136f5906e0add89412f02bfca36 (diff) | |
parent | fb029add367bde0b8cb7b719034a39429e59c64c (diff) |
Merge pull request #1223 from SaberUK/master+travis
Speed up Travis builds.
Diffstat (limited to 'tools/test-build')
-rwxr-xr-x | tools/test-build | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tools/test-build b/tools/test-build index 629e537c4..17c98042b 100755 --- a/tools/test-build +++ b/tools/test-build @@ -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!"; } |