-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (52 loc) · 1.32 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
dist: trusty
language: android
git:
depth: false
before_install:
- sudo apt-get -y install xsltproc xml-twig-tools
android:
components:
# Update Android SDK tools
- tools
- platform-tools
# Build tools
- build-tools-29.0.3
# SDK version
- android-29
# Additional Google components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- android-sdk-preview-license-.+
- 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:
bundler: true
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- .gradle
- $HOME/.android/build-cache
- $HOME/.m2/repository
- $HOME/.sonar/cache
jobs:
fast_finish: true
include:
- script: ./gradlew test
if: type = pull_request
- script: ./gradlew lint
if: type = pull_request
- stage: run_ci_pull_request_assemble
if: type = pull_request
script: ./gradlew assembleDebug
- stage: run_ci_fastlane
if: (NOT type IN (pull_request))
before_install:
- rvm install 2.6.3
- bundle install
- fastlane install_plugins
script: bundle exec fastlane testing