@@ -241,7 +241,7 @@ solve_all_exercises() {
241241 # The stripping implementations here and in copyTestsFilteringIgnores should be kept consistent.
242242 sed ' s/@Ignore\(\(.*\)\)\{0,1\}//' ${testfile} > " ${tempfile} " && mv " ${tempfile} " " ${testfile} "
243243 done
244- " $EXECPATH " /gradlew test --configure-on-demand --parallel
244+ " $EXECPATH " /gradlew test --configure-on-demand --parallel &
245245 popd
246246
247247 current_exercise_number=$(( current_exercise_number + 1 ))
@@ -269,18 +269,24 @@ main() {
269269
270270 clean " ${build_dir} "
271271
272- # Make a local version of trackler that includes the source from this repo.
273- git_clone " x-api" " ${xapi_home} "
274- git_clone " trackler" " ${trackler_home} "
275- assert_ruby_installed " ${trackler_home} "
272+ # Download everything we need in parallel
273+ git_clone " x-api" " ${xapi_home} " &
274+ git_clone " trackler" " ${trackler_home} " &
275+ download_exercism_cli $( get_operating_system) $( get_cpu_architecture) " ${exercism_home} " &
276+ wait
277+
278+ # Check and install the ruby stuff we need in parallel
279+ assert_ruby_installed " ${trackler_home} " &
280+ assert_ruby_installed " ${xapi_home} " &
281+ wait
282+
283+ # Make a local version of trackler
276284 make_local_trackler " ${trackler_home} " " ${xapi_home} "
277285
278- # Stand-up a local instance of x-api so we can fetch the exercises through it.
279- assert_ruby_installed " ${xapi_home} "
286+ # Start-up a local instance of x-api so we can fetch the exercises through it.
280287 start_x_api " ${xapi_home} "
281288
282289 # Create a CLI install and config just for this build; this script does not use your CLI install.
283- download_exercism_cli $( get_operating_system) $( get_cpu_architecture) " ${exercism_home} "
284290 configure_exercism_cli " ${exercism_home} " " ${exercism_configfile} " " ${xapi_port} "
285291
286292 solve_all_exercises " ${exercism_home} " " ${exercism_configfile} "
0 commit comments