Daniel Zlotin 8 yıl önce
ebeveyn
işleme
0de66280f2
3 değiştirilmiş dosya ile 24 ekleme ve 8 silme
  1. 2
    8
      .travis.yml
  2. 4
    0
      scripts/clean.sh
  3. 18
    0
      scripts/installAndroidSDK.sh

+ 2
- 8
.travis.yml Dosyayı Görüntüle

@@ -15,18 +15,12 @@ cache:
15 15
 
16 16
 before_install:
17 17
   - set -e
18
-  # clean
19
-  - watchman watch-del-all 2> /dev/null || true
20
-  - rm -rf "$TMPDIR/react-packager-*" || true
18
+  - ./scripts/clean
21 19
 
22 20
 install:
23 21
   #- npm i -g yarn
24 22
   #- yarn
25
-  # download android sdk
26
-  - curl --location https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar -x -z -C $HOME
27
-  - export ANDROID_HOME=$HOME/android-sdk-linux
28
-  - export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
29
-  - ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui -a --filter tools,platform-tools,build-tools-25.0.0,android-23,addon-google_apis-google-24,extra-android-m2repository,extra-google-google_play_services,extra-google-m2repository
23
+  - ./scripts/installAndroidSDK
30 24
 
31 25
 script:
32 26
   - npm run test

+ 4
- 0
scripts/clean.sh Dosyayı Görüntüle

@@ -0,0 +1,4 @@
1
+#!/bin/sh -e
2
+
3
+watchman watch-del-all 2> /dev/null || true
4
+rm -rf "$TMPDIR/react-packager-*" || true

+ 18
- 0
scripts/installAndroidSDK.sh Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+#!/bin/sh -e
2
+
3
+curl --location http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar -x -z -C $HOME
4
+
5
+export ANDROID_HOME=$HOME/android-sdk-linux
6
+
7
+export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
8
+
9
+( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui -a \
10
+--filter \
11
+tools,\
12
+platform-tools,\
13
+build-tools-25.0.0,\
14
+android-23,\
15
+addon-google_apis-google-24,\
16
+extra-android-m2repository,\
17
+extra-google-google_play_services,\
18
+extra-google-m2repository