-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (73 loc) · 2.15 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
os: linux
sudo: required
jdk: oraclejdk8
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
git:
depth: 1
dist: xenial
addons:
apt:
sources:
- sourceline: deb https://dl.yarnpkg.com/debian/ stable main
key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
packages:
- oracle-java8-installer
- oracle-java8-set-default
language: android
android:
components:
- tools
- platform-tools-28.0.2
# The BuildTools version used by your project
- build-tools-28.0.3
# The SDK version used to compile your project
- android-28
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
licenses:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
before_install:
#- touch $HOME/.android/repositories.cfg
#- yes | sdkmanager "platforms;android-28"
#- yes | sdkmanager "build-tools;28.0.3"
- export LANG=en_US.UTF-8
script:
# See https://austinpray.com/ops/2015/09/20/change-travis-node-version.html
# Clear out whatever version of NVM Travis has.
# Their version of NVM is probably old.
- rm -rf ~/.nvm
# Grab NVM.
- git clone https://github.com/creationix/nvm.git ~/.nvm
# Checkout the latest stable tag.
# Note that you can just hardcode a preferred version here.
- (cd ~/.nvm; git checkout `git describe --abbrev=0 --tags`)
# Add nvm command available to shell
- source ~/.nvm/nvm.sh
branches:
only:
- master
notifications:
webhooks: https://travis-for-jira-prod.toolsplus.app/travis/notifications?token=b6ec3949-b6cf-3325-9b12-7eb3f35f9eef
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always