Browse Source

For Travis CI - build AssetImporter separately from the rest.
Temporary workaround due to Travis-CI insufficient memory when building AssetImporter concurrently with other samples in 64-bit/MinGW/STATIC build configuration.

Yao Wei Tjong 姚伟忠 11 years ago
parent
commit
5989a5c4d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Rakefile

+ 4 - 0
Rakefile

@@ -255,6 +255,10 @@ def makefile_travis_ci
   else
   else
     platform_prefix = ''
     platform_prefix = ''
   end
   end
+  # Temporary workaround due to Travis-CI insufficient memory when building AssetImporter concurrently with other samples in 64-bit/MinGW/STATIC build configuration
+  if ENV['CI'] and ENV['WINDOWS'] and ENV['URHO3D_64BIT'] and ENV['URHO3D_LIB_TYPE'] == 'STATIC'
+    system "cd #{platform_prefix}Build/Tools/AssetImporter && make -j$NUMJOBS" or abort 'Failed to build or test Urho3D library'
+  end
   # Only 64-bit Linux environment with virtual framebuffer X server support and not MinGW build; or OSX build environment are capable to run tests
   # Only 64-bit Linux environment with virtual framebuffer X server support and not MinGW build; or OSX build environment are capable to run tests
   if $testing == 1 and (ENV['URHO3D_64BIT'] and ENV['WINDOWS'].to_i != 1 or ENV['OSX'])
   if $testing == 1 and (ENV['URHO3D_64BIT'] and ENV['WINDOWS'].to_i != 1 or ENV['OSX'])
     test = '&& make test'
     test = '&& make test'