Sfoglia il codice sorgente

Download all the stuff we need in parallel on the journey test

Logan Stucki 9 anni fa
parent
commit
059eecaab4
No account linked to committer's email
1 ha cambiato i file con 14 aggiunte e 8 eliminazioni
  1. 14
    8
      bin/journey-test.sh

+ 14
- 8
bin/journey-test.sh Vedi File

@@ -241,7 +241,7 @@ solve_all_exercises() {
241 241
       # The stripping implementations here and in copyTestsFilteringIgnores should be kept consistent.
242 242
       sed 's/@Ignore\(\(.*\)\)\{0,1\}//' ${testfile} > "${tempfile}" && mv "${tempfile}" "${testfile}"
243 243
     done
244
-    "$EXECPATH"/gradlew test --configure-on-demand --parallel
244
+    "$EXECPATH"/gradlew test --configure-on-demand --parallel &
245 245
     popd
246 246
 
247 247
     current_exercise_number=$((current_exercise_number + 1))
@@ -269,18 +269,24 @@ main() {
269 269
 
270 270
   clean "${build_dir}"
271 271
 
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
276 284
   make_local_trackler "${trackler_home}" "${xapi_home}"
277 285
 
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.
280 287
   start_x_api "${xapi_home}"
281 288
 
282 289
   # 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}"
284 290
   configure_exercism_cli "${exercism_home}" "${exercism_configfile}" "${xapi_port}"
285 291
 
286 292
   solve_all_exercises "${exercism_home}" "${exercism_configfile}"