Browse Source

trying to run on OSX

Daniel Zlotin 8 years ago
parent
commit
a4e7c49ba6
2 changed files with 6 additions and 2 deletions
  1. 5
    1
      .travis.yml
  2. 1
    1
      scripts/installAndroidSDK.sh

+ 5
- 1
.travis.yml View File

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

+ 1
- 1
scripts/installAndroidSDK.sh View File

5
 
5
 
6
 # download android SDK
6
 # download android SDK
7
 echo "Downloading Android SDK"
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
 # copy licenses
10
 # copy licenses
11
 echo "Copying Android licenses"
11
 echo "Copying Android licenses"