-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (34 loc) · 1.56 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: objective-c
osx_image: xcode9.3
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
- directories:
# Android SDK
- $HOME/android-sdk-dl
- $HOME/android-sdk
# Gradle dependencies
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# Android build cache (see http://tools.android.com/tech-docs/build-cache)
- $HOME/.android/build-cache
- $HOME/.konan/cache
install:
- gem install cocoapods --version 1.5.2
# Download and unzip the Android SDK tools (if not already there thanks to the cache mechanism)
# Latest version available here: https://developer.android.com/studio/index.html#downloads
- mkdir -p $HOME/android-sdk-dl
- if test ! -e $HOME/android-sdk-dl/sdk-tools.zip ; then curl https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip > $HOME/android-sdk-dl/sdk-tools.zip ; fi
- unzip -qq -n $HOME/android-sdk-dl/sdk-tools.zip -d $ANDROID_HOME
# Install or update Android SDK components (will not do anything if already up to date thanks to the cache mechanism)
- yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses > /dev/null
- yes | $ANDROID_HOME/tools/bin/sdkmanager 'tools' > /dev/null
- yes | $ANDROID_HOME/tools/bin/sdkmanager 'platform-tools' > /dev/null
- yes | $ANDROID_HOME/tools/bin/sdkmanager 'build-tools;27.0.3' > /dev/null
- yes | $ANDROID_HOME/tools/bin/sdkmanager 'platforms;android-27' > /dev/null
- yes | $ANDROID_HOME/tools/bin/sdkmanager 'extras;google;m2repository' > /dev/null
env:
- ANDROID_HOME=$HOME/android-sdk
script:
- ./build.sh