From 3e0631af7fb5c91efa151d70667f2111958ba163 Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Mon, 1 Feb 2016 10:48:51 -0800 Subject: [PATCH] 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 --- .buckconfig | 2 -- .buckjavaargs | 1 + circle.yml | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 .buckjavaargs diff --git a/.buckconfig b/.buckconfig index cc1b6556849daf..934256cb29d4a3 100644 --- a/.buckconfig +++ b/.buckconfig @@ -4,5 +4,3 @@ [maven_repositories] central = https://repo1.maven.org/maven2 - - diff --git a/.buckjavaargs b/.buckjavaargs new file mode 100644 index 00000000000000..11452478196f70 --- /dev/null +++ b/.buckjavaargs @@ -0,0 +1 @@ +-Xmx512m -XX:+HeapDumpOnOutOfMemoryError diff --git a/circle.yml b/circle.yml index ee9901bbf112b4..b0ea6e9902b3d3 100644 --- a/circle.yml +++ b/circle.yml @@ -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