Daniel Zlotin преди 8 години
родител
ревизия
a4e7c49ba6
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 5
    1
      .travis.yml
  2. 1
    1
      scripts/installAndroidSDK.sh

+ 5
- 1
.travis.yml Целия файл

@@ -1,3 +1,4 @@
1
+language: objective-c
1 2
 os: osx
2 3
 osx_image: xcode8.1
3 4
 
@@ -7,6 +8,7 @@ env:
7 8
     - PATH=$PATH:$HOME/.yarn/bin
8 9
     - ANDROID_HOME=$HOME/android-sdk-macosx
9 10
     - PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
11
+    - YARN_CACHE=$HOME/.yarn-cache
10 12
 
11 13
 git:
12 14
   depth: 10
@@ -17,8 +19,8 @@ branches:
17 19
   - v2
18 20
 
19 21
 cache:
20
-  yarn: true
21 22
   directories:
23
+    - $YARN_CACHE
22 24
     - $HOME/.gradle/
23 25
     - $HOME/.m2
24 26
     - $ANDROID_HOME/licenses/
@@ -31,6 +33,8 @@ before_install:
31 33
   - set -e
32 34
   - brew update
33 35
   - brew cask install java
36
+  - touch ~/.bash_profile
37
+  - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
34 38
   - nvm install $NODE_VERSION
35 39
   - curl -o- -L https://yarnpkg.com/install.sh | bash
36 40
 

+ 1
- 1
scripts/installAndroidSDK.sh Целия файл

@@ -5,7 +5,7 @@ mkdir -p ~/.android
5 5
 
6 6
 # download android SDK
7 7
 echo "Downloading Android SDK"
8
-curl --location https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip | tar -x -z -C $HOME
8
+curl --location https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip | tar -x -z -C $HOME
9 9
 
10 10
 # copy licenses
11 11
 echo "Copying Android licenses"