-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy path.travis.yml
57 lines (48 loc) · 1.29 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
language: android
jdk: oraclejdk8
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- android-22
- extra-android-m2repository
- sys-img-armeabi-v7a-android-22
licenses:
- 'android-sdk-license-.+'
- 'android-sdk-preview-.+'
- '.*'
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.m2/
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.groovy/grapes/
before_script:
- chmod +x ./travis_start_emulator.sh
- ./travis_start_emulator.sh
env:
matrix:
- TASK=:backend:test ANDROID=false CL=false
- TASK=:common-client-jvm:test ANDROID=false CL=false
- TASK=:common-client-js:test ANDROID=false CL=false
- TASK=:web:run ANDROID=false CL=false
- TASK=:desktop:build ANDROID=false CL=false
- TASK=:android:mobile:connectedProdDebugAndroidTest ANDROID=true CL=false
- TASK=:android:mobile:assemble ANDROID=true CL=true
- TASK=:android:wear:assemble ANDROID=true CL=false
script:
- ./gradlew -Dorg.gradle.project.INCLUDE_ANDROID=${ANDROID} ${TASK}
after_success:
- test CL && sh deploy_crashlytics.sh
branches:
only:
- master
cache:
directories:
- $HOME/.m2
- $HOME/.gradle