This repository has been archived by the owner on Dec 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (50 loc) · 1.82 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
40
41
42
43
44
45
46
47
48
49
50
51
branches:
only:
- master
- develop
- "/release\\/.+/"
matrix:
include:
- language: objective-c
cache: cocoapods
osx_image: xcode10.1
before_install:
- gem install cocoapods
- gem install xcpretty
- npm install -g cordova
script:
- chmod a+x ./bin/test
- ./bin/test ios
- language: android
cache: false
dist: trusty
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS
- build-tools-25
- android-$ANDROID_API # SDK API
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_install:
- echo 'count=0' > /home/travis/.android/repositories.cfg # Avoid harmless sdkmanager warning
# Install SDK license so Android Gradle plugin can install deps.
- mkdir "$ANDROID_HOME/licenses" || true
- echo "" >> gradle.properties
- echo "NEXUS_USERNAME=[secure]" >> gradle.properties
- echo "NEXUS_PASSWORD=[secure]" >> gradle.properties
- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" >> "$ANDROID_HOME/licenses/android-sdk-license"
- echo "y" | sdkmanager emulator
- rm -rf ~/.android/avd/
- echo "y" | sdkmanager --update
- yes | sdkmanager --licenses
- echo "y" | sdkmanager emulator
- if [ -n "$API" ]; then echo "y" | sdkmanager "system-images;android-$API;default;$EABI" ; fi
- if [ -n "$API" ]; then echo no | avdmanager create avd --force -n test-api-$API -k "system-images;android-$API;default;$EABI" ; fi
script: bin/test android