forked from LexifyOrganization/Lexify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (47 loc) · 1.56 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
language: android
jdk: oraclejdk8
before_install:
# Download SDK
- echo yes | sdkmanager "tools" &>/dev/null
- echo yes | sdkmanager "platform-tools" &>/dev/null
- echo yes | sdkmanager "build-tools;26.0.2" &>/dev/null
- echo yes | sdkmanager "platforms;android-26" &>/dev/null
# Update remaining dependencies and accept licenses
- echo yes | sdkmanager --update &>/dev/null
- echo yes | sdkmanager --licenses &>/dev/null
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories: #Cache all dirs under .gradle folder
- $HOME/.gradle/daemon #Cache daemon logs
- $HOME/.gradle/native #Cache library downloaded from the gradle dependency
- $HOME/.gradle/wrapper #Cache the gradle
android:
components:
- platform-tools
- tools
# The BuildTools version used by our project
- build-tools-26.0.2
# The SDK version used to compile pour project
- android-26
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-26
# to run emulator during tests
- sys-img-armeabi-v7a-android-17
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
before_script:
- mkdir -p "$ANDROID_HOME/licenses"
- chmod +x ./gradlew
script:
- ./gradlew build check
- ./gradlew build jacocoTestReport assembleAndroidTest
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email: lexfiapp@gmail.com