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:
Konstantin Raev 2016-02-01 10:48:51 -08:00 committed by facebook-github-bot-7
parent cb2eeb484d
commit 3e0631af7f
3 changed files with 3 additions and 3 deletions

View File

@ -4,5 +4,3 @@
[maven_repositories]
central = https://repo1.maven.org/maven2

1
.buckjavaargs Normal file
View File

@ -0,0 +1 @@
-Xmx512m -XX:+HeapDumpOnOutOfMemoryError

View File

@ -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