mirror of
https://github.com/status-im/react-native.git
synced 2025-01-12 02:24:23 +00: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:
parent
cb2eeb484d
commit
3e0631af7f
@ -4,5 +4,3 @@
|
||||
|
||||
[maven_repositories]
|
||||
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
|
||||
override:
|
||||
# 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/shell
|
||||
# temp, we can't run instrumentation tests yet
|
||||
@ -49,6 +49,7 @@ test:
|
||||
|
||||
# unit tests
|
||||
- ./gradlew :ReactAndroid:testDebugUnitTest -PdisablePreDex
|
||||
|
||||
# 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
|
||||
# run tests on the emulator
|
||||
|
Loading…
x
Reference in New Issue
Block a user