Travis fails building Gatsby 2 / Memory exceeded

Hi, I just started seeing these errors in our Travis logs. Is there anything we can do to increase memory allocated to building Gatsby 2? I expect this to be a common problem…

CI build:
https://travis-ci.org/patternfly/patternfly-react/builds/484629851

Relevant JS errors:

11.412 s e[36me[1m@patternfly/react-docse[22me[39m: <— Last few GCs —> e[36me[1m@patternfly/react-docse[22me[39m: [9236:0x3d1c560] 403641 ms: Mark-sweep 1316.2 (1465.8) -> 1316.2 (1465.8) MB, 1280.8 / 0.0 ms allocation failure GC in old space requested e[36me[1m@patternfly/react-docse[22me[39m: [9236:0x3d1c560] 405777 ms: Mark-sweep 1316.2 (1465.8) -> 1316.2 (1427.3) MB, 1787.2 / 0.0 ms last resort GC in old space requested e[36me[1m@patternfly/react-docse[22me[39m: [9236:0x3d1c560] 407505 ms: Mark-sweep 1316.2 (1427.3) -> 1316.2 (1424.8) MB, 1727.0 / 0.0 ms last resort GC in old space requested e[36me[1m@patternfly/react-docse[22me[39m: <— JS stacktrace —> e[36me[1m@patternfly/react-docse[22me[39m: ==== JS stack trace ========================================= e[36me[1m@patternfly/react-docse[22me[39m: Security context: 0x27519c0a58b9 <JSObject> e[36me[1m@patternfly/react-docse[22me[39m: 1: n [/home/travis/build/patternfly/patternfly-react/node_modules/terser/dist/bundle.js:~44] [pc=0x138413177f41](this=0x15531a70c2f1 <JSGlobal Object>,e=0x351550944439 <JSArray[0]>,t=0x35155096e809 <vn map = 0x24a464c06e51>) e[36me[1m@patternfly/react-docse[22me[39m: 2: /* anonymous / [/home/travis/build/patternfly/patternfly-react/node_modules/terser/dist/bundle.js:44] [bytecode=0x296770edb099 offset=38](this=0x15531a70c2f1 <JS… e[36m@patternfly/react-docse[39m: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory e[36m@patternfly/react-docse[39m: 1: node::Abort() [node] e[36m@patternfly/react-docse[39m: 2: 0x8ccf9c [node] e[36m@patternfly/react-docse[39m: 3: v8::Utils::ReportOOMFailure(char const, bool) [node] e[36m@patternfly/react-docse[39m: 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node] e[36m@patternfly/react-docse[39m: 5: v8::internal::factory::NewCode(v8::internal::CodeDesc const&, unsigned int, v8::internal::Handle<v8::internal::Object>, bool, int) [node] e[36m@patternfly/react-docse[39m: 6: v8::internal::CodeGenerator::MakeCodeEpilogue(v8::internal::TurboAssembler*, v8::internal::EhFrameWriter*, v8::internal::CompilationInfo*, v8::internal::Handle<v8::internal::Object>) [node] e[36m@patternfly/react-docse[39m: 7: v8::internal::compiler::CodeGenerator::FinalizeCode() [node] e[36m@patternfly/react-docse[39m: 8: v8::internal::compiler::PipelineImpl::FinalizeCode() [node] e[36m@patternfly/react-docse[39m: 9: v8::internal::compiler::PipelineCompilationJob::FinalizeJobImpl() [node] e[36m@patternfly/react-docse[39m: 10: v8::internal::Compiler::FinalizeCompilationJob(v8::internal::CompilationJob*) [node] e[36m@patternfly/react-docse[39m: 11: v8::internal::OptimizingCompileDispatcher::InstallOptimizedFunctions() [node] e[36m@patternfly/react-docse[39m: 12: v8::internal::StackGuard::HandleInterrupts() [node] e[36m@patternfly/react-docse[39m: 13: v8::internal::Runtime_StackGuard(int, v8::internal::Object**, v8::internal::Isolate*) [node] e[36m@patternfly/react-docse[39m: 14: 0x1384117042fd e[36m@patternfly/react-docse[39m: Aborted (core dumped) e[36m@patternfly/react-docse[39m: error Command failed with exit code 134. e[36me[1m@patternfly/react-docse[22me[39m: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.