Cicle CI fix: limit predex threads

Summary:
Limited nubmer of threads Gradle may spawn when generating dex files
Closes https://github.com/facebook/react-native/pull/8279

Differential Revision: D3463716

fbshipit-source-id: 6f1ee35c077649d94fe879cf9327383971321307
This commit is contained in:
Konstantin Raev 2016-06-21 10:20:58 -07:00 коммит произвёл Facebook Github Bot 1
Родитель d63d4f0e9c
Коммит f58c53e3ee
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -62,7 +62,7 @@ test:
# instrumentation tests # instrumentation tests
# compile native libs with Gradle script # compile native libs with Gradle script
- ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1: - ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1 -Pcom.android.build.threadPoolSize=1:
timeout: 360 timeout: 360
# build JS bundle for instrumentation tests # build JS bundle for instrumentation tests
- node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js - node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
@ -72,9 +72,9 @@ test:
- node ./scripts/run-android-ci-instrumentation-tests.js --retries 3 --path ./ReactAndroid/src/androidTest/java/com/facebook/react/tests --package com.facebook.react.tests - node ./scripts/run-android-ci-instrumentation-tests.js --retries 3 --path ./ReactAndroid/src/androidTest/java/com/facebook/react/tests --package com.facebook.react.tests
# gradle may invalidate bridge build cache, so we pass single-threaded setting just in case # gradle may invalidate bridge build cache, so we pass single-threaded setting just in case
- ./gradlew :ReactAndroid:testDebugUnitTest -Pjobs=1 - ./gradlew :ReactAndroid:testDebugUnitTest -Pjobs=1 -Pcom.android.build.threadPoolSize=1
# Deprecated: these tests are executed using Buck above, while we support Gradle we just make sure the test code compiles # Deprecated: these tests are executed using Buck above, while we support Gradle we just make sure the test code compiles
- ./gradlew :ReactAndroid:assembleDebugAndroidTest -Pjobs=1 - ./gradlew :ReactAndroid:assembleDebugAndroidTest -Pjobs=1 -Pcom.android.build.threadPoolSize=1
# Android e2e test # Android e2e test
- node ./scripts/run-ci-e2e-tests.js --android --js --retries 3 - node ./scripts/run-ci-e2e-tests.js --android --js --retries 3