Browse Source

caching licenses

Daniel Zlotin 8 years ago
parent
commit
95b13fabec
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      .travis.yml

+ 4
- 1
.travis.yml View File

16
     - $HOME/.gradle/caches/
16
     - $HOME/.gradle/caches/
17
     - $HOME/.gradle/wrapper/
17
     - $HOME/.gradle/wrapper/
18
     - $HOME/.m2
18
     - $HOME/.m2
19
+    - $ANDROID_HOME/licenses
19
 
20
 
20
 before_cache:
21
 before_cache:
21
   - rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
22
   - rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
23
 
24
 
24
 before_install:
25
 before_install:
25
   - set -e
26
   - set -e
27
+  - export ANDROID_HOME=$HOME/android-sdk-linux
28
+  - export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
26
   - ./scripts/clean.sh
29
   - ./scripts/clean.sh
27
 
30
 
28
 script:
31
 script:
29
   - yarn run lint
32
   - yarn run lint
30
   - yarn run test:js
33
   - yarn run test:js
31
-  - source ./scripts/installAndroidSDK.sh
34
+  - ./scripts/installAndroidSDK.sh
32
   - yarn run test:android
35
   - yarn run test:android
33
 
36
 
34
 after_script:
37
 after_script: