|
|
@@ -80,8 +80,7 @@ task :cmake do
|
|
|
ccache_envvar = ENV['CCACHE_SLOPPINESS'] ? '' : 'CCACHE_SLOPPINESS=pch_defines,time_macros' # Only attempt to do the right thing when user hasn't done it
|
|
|
ccache_envvar = "#{ccache_envvar} CCACHE_COMPRESS=1" unless ENV['CCACHE_COMPRESS']
|
|
|
end
|
|
|
- system "#{ccache_envvar} ./#{script}#{ENV['OS'] ? '.bat' : '.sh'} \"#{build_tree}\" #{build_options}"
|
|
|
- exit $?.exitstatus
|
|
|
+ system "#{ccache_envvar} ./#{script}#{ENV['OS'] ? '.bat' : '.sh'} \"#{build_tree}\" #{build_options}" or abort
|
|
|
end
|
|
|
|
|
|
# Usage: rake make [<platform>] [<option>=<value> [<option>=<value>]] [[<platform>_]build_tree=/path/to/build-tree] [numjobs=n] [clean_first] [unfilter]
|
|
|
@@ -168,8 +167,7 @@ task :make do
|
|
|
build_options = "-j#{numjobs}#{build_options}"
|
|
|
filter = ''
|
|
|
end
|
|
|
- system "cd \"#{build_tree}\" && #{ccache_envvar} cmake --build . #{cmake_build_options} -- #{build_options} #{filter}"
|
|
|
- exit $?.exitstatus
|
|
|
+ system "cd \"#{build_tree}\" && #{ccache_envvar} cmake --build . #{cmake_build_options} -- #{build_options} #{filter}" or abort
|
|
|
end
|
|
|
|
|
|
# Usage: rake android [parameter='--es pickedLibrary Urho3DPlayer:Scripts/NinjaSnowWar.as'] [intent=.SampleLauncher] [package=com.github.urho3d] [success_indicator='Initialized engine'] [payload='sleep 30'] [api=21] [abi=armeabi-v7a] [avd=test_#{api}_#{abi}] [retries=10] [retry_interval=10] [install]
|
|
|
@@ -353,7 +351,7 @@ task :ci do
|
|
|
next
|
|
|
end
|
|
|
if !system "bash -c 'rake make'"
|
|
|
- abort 'Failed to build Urho3D library' unless $?.exitstatus == 2 && timeup
|
|
|
+ abort 'Failed to build Urho3D library' unless File.exists?('already_timeup.log')
|
|
|
$stderr.puts "Skipped the rest of the CI processes due to insufficient time"
|
|
|
next
|
|
|
end
|