浏览代码

caching m2

Daniel Zlotin 8 年前
父节点
当前提交
d3b1f8ff8e
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5
    4
      .travis.yml

+ 5
- 4
.travis.yml 查看文件

@@ -10,16 +10,17 @@ branches:
10 10
   - master
11 11
   - v2
12 12
 
13
-before_cache:
14
-  - rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
15
-  - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
16
-
17 13
 cache:
18 14
   yarn: true
19 15
   directories:
20 16
     - node_modules
21 17
     - $HOME/.gradle/caches/
22 18
     - $HOME/.gradle/wrapper/
19
+    - $HOME/.m2
20
+
21
+before_cache:
22
+  - rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
23
+  - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
23 24
 
24 25
 before_install:
25 26
   - set -e