Repository: zeppelin Updated Branches: refs/heads/master da8857fea -> 51b87927b
Cache zeppelin-web/node_modules on travis ci and see if it reduces CI failure on npm install ### What is this PR for? Recently CI build fails a lot on npm install on building zeppelin-web module with network issues. This PR tries to cache zeppelin-web/node_modules on travis and see it it helps reducing network issues. ### What type of PR is it? Improvement ### Todos * [x] - Cache zeppelin-web/node_modules Author: Lee moon soo <m...@apache.org> Closes #1285 from Leemoonsoo/cache_node_modules and squashes the following commits: 3995f44 [Lee moon soo] trigger ci 1e2116d [Lee moon soo] trigger ci 48c175f [Lee moon soo] update cache before after_success or after_failure 5d32766 [Lee moon soo] trigger ci aa45ed6 [Lee moon soo] echo c027207 [Lee moon soo] cache zeppelin-web/node_modules on travis ci Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/51b87927 Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/51b87927 Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/51b87927 Branch: refs/heads/master Commit: 51b87927bc876250f8e1ecd47f76ed0245bb7e9f Parents: da8857f Author: Lee moon soo <m...@apache.org> Authored: Thu Aug 4 22:26:27 2016 -0700 Committer: Lee moon soo <m...@apache.org> Committed: Fri Sep 2 06:45:08 2016 +1000 ---------------------------------------------------------------------- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/51b87927/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 168193c..89c90a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,7 @@ cache: directories: - .spark-dist - ${HOME}/.m2/repository/.cache/maven-download-plugin + - .node_modules addons: apt: @@ -71,6 +72,7 @@ matrix: before_install: - "ls -la .spark-dist ${HOME}/.m2/repository/.cache/maven-download-plugin" + - ls .node_modules && cp -r .node_modules zeppelin-web/node_modules || echo "node_modules are not cached" - mkdir -p ~/R - echo 'R_LIBS=~/R' > ~/.Renviron - R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org', lib='~/R')" @@ -89,6 +91,7 @@ before_script: script: - mvn $TEST_FLAG $PROFILE -B $TEST_PROJECTS + - rm -rf .node_modules; cp -r zeppelin-web/node_modules .node_modules after_success: - echo "Travis exited with ${TRAVIS_TEST_RESULT}" @@ -104,3 +107,4 @@ after_failure: after_script: - ./testing/stopSparkCluster.sh $SPARK_VER $HADOOP_VER +