-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
69 lines (65 loc) · 1.92 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
matrix:
include:
- os: linux
sudo: false
language: android
android:
components:
- tools
- platform-tools
- tools
- build-tools-26.0.0
- android-25
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
addons:
apt:
sources:
- sourceline: deb https://dl.yarnpkg.com/debian/ stable main
key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
- sourceline: deb http://dl.google.com/linux/chrome/deb/ stable main
key_url: https://dl-ssl.google.com/linux/linux_signing_key.pub
packages:
- oracle-java8-installer
- oracle-java8-set-default
- yarn
- jq
- gradle
- google-chrome-stable
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
allow_failures:
- os: osx
language: objective-c
osx_image: xcode8.3
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/transforms-1/transforms-1.lock
- rm -rf $HOME/.gradle/caches/3.5/fileHashes/
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "$HOME/Library/Caches/Yarn/v1/"
- "$HOME/.cache/yarn/v1/"
before_install:
- export LANG=en_US.UTF-8
- export CHROME_BIN=google-chrome
- export TRAVIS_TAG=$(git tag --points-at HEAD)
- nvm install 8
- npm install cordova@7 -g
- mkdir -p $ANDROID_HOME/licenses
- echo -e "d56f5187479451eabf01fb78af6dfcb131a6481e" >> $ANDROID_HOME/licenses/android-sdk-license
- echo -e "84831b9409646a918e30573bab4c9c91346d8abd" >> $ANDROID_HOME/licenses/android-sdk-preview-license
- yes | sdkmanager "platforms;android-26"
- mkdir $HOME/app
script:
- ./scripts/create-test-project.sh 6
- ./scripts/create-test-project.sh 7
- ./scripts/create-test-project.sh 8
release:
- exit 0