From f1b56a2c07b72ea84ec176571eac0bdb392e4a08 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 22 Dec 2016 16:13:57 -0800 Subject: [build] Symlink mapbox-gl-js/node_modules so that it shares a cache --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fcbb6c360..aa25cd6def 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,11 @@ if(NOT EXISTS "mapbox-gl-js/package.json") execute_process( COMMAND git submodule update --init mapbox-gl-js WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + # Symlink mapbox-gl-js/node_modules so that the modules that are + # about to be installed get cached between CI runs. + execute_process( + COMMAND ln -s ../node_modules node_modules + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/mapbox-gl-js) execute_process( COMMAND npm install WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/mapbox-gl-js) -- cgit v1.2.1