diff options
author | Peter Powell <petpow@saberuk.com> | 2016-09-13 02:56:14 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2016-09-15 02:21:53 +0100 |
commit | fb029add367bde0b8cb7b719034a39429e59c64c (patch) | |
tree | fe444e6fe35831e7423576f826121846db26f82d /tools/test-build | |
parent | 42888e2907dacb829e2a29effbee83efb5bef6ec (diff) |
Speed up Travis builds.
- Switch Linux builds to Ubuntu 14.04 from 12.04.
- Split dynamic and static builds into different jobs.
- Remove OS X builds as the infrastructure is slow and unreliable.
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!"; } |