mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
limiting BUCK's memory for CI
Summary: Closes https://github.com/facebook/react-native/pull/5666 Reviewed By: svcscm Differential Revision: D2885968 Pulled By: androidtrunkagent fb-gh-sync-id: 59614f89c18f8db96210e5c93f599055575330fa
This commit is contained in:
committed by
facebook-github-bot-7
parent
cb2eeb484d
commit
3e0631af7f
@@ -4,5 +4,3 @@
|
|||||||
|
|
||||||
[maven_repositories]
|
[maven_repositories]
|
||||||
central = https://repo1.maven.org/maven2
|
central = https://repo1.maven.org/maven2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
.buckjavaargs
Normal file
1
.buckjavaargs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-Xmx512m -XX:+HeapDumpOnOutOfMemoryError
|
||||||
@@ -41,7 +41,7 @@ test:
|
|||||||
- source scripts/circle-ci-android-setup.sh && waitForAVD
|
- source scripts/circle-ci-android-setup.sh && waitForAVD
|
||||||
override:
|
override:
|
||||||
# buck tests
|
# buck tests
|
||||||
- buck/bin/buck test ReactAndroid/src/test/...
|
- buck/bin/buck test ReactAndroid/src/test/... --config build.threads=1
|
||||||
- buck/bin/buck build ReactAndroid/src/main/java/com/facebook/react
|
- buck/bin/buck build ReactAndroid/src/main/java/com/facebook/react
|
||||||
- buck/bin/buck build ReactAndroid/src/main/java/com/facebook/react/shell
|
- buck/bin/buck build ReactAndroid/src/main/java/com/facebook/react/shell
|
||||||
# temp, we can't run instrumentation tests yet
|
# temp, we can't run instrumentation tests yet
|
||||||
@@ -49,6 +49,7 @@ test:
|
|||||||
|
|
||||||
# unit tests
|
# unit tests
|
||||||
- ./gradlew :ReactAndroid:testDebugUnitTest -PdisablePreDex
|
- ./gradlew :ReactAndroid:testDebugUnitTest -PdisablePreDex
|
||||||
|
|
||||||
# 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/assets/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/assets/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
|
||||||
# run tests on the emulator
|
# run tests on the emulator
|
||||||
|
|||||||
Reference in New Issue
Block a user