forked from wordpress-mobile/WordPress-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (33 loc) · 1.1 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
language: android
jdk: oraclejdk8
sudo: required
notifications:
# Slack notification on failure (secured token).
slack:
rooms:
secure: sOTcwi1DT0lJykB/smJQwJ5lQblg9jc5PtLsTu4euI/P4nCv1CPu5DVZ1aDwXL6TPDUO5uEwbzbjVFZzrl2nFdAV9XvGT3wL3Zrm2Y5HBtwi8JWdbc4dYR/xobJlIg7HRczXwoFt6yls4BUayNJJbZFV9q0ftmUSe77Pag/ZWQw=
on_failure: always
on_success: change
android:
components:
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
- platform-tools
- tools
- build-tools-25.0.3
- android-25
env:
global:
- MALLOC_ARENA_MAX=2
- GRADLE_OPTS="-XX:MaxPermSize=4g -Xmx4g"
- ANDROID_SDKS=android-14
- ANDROID_TARGET=android-14
before_install:
# TODO: Remove the following line when Travis' platform-tools are updated to v25+
- echo yes | android update sdk -a --filter platform-tools --no-ui --force
install:
# Setup gradle.properties
- cp gradle.properties-example gradle.properties
script:
- ./gradlew -PdisablePreDex assembleVanillaRelease lint test || (grep -A20 -B2 'severity="Error"' -r --include="*.xml" WordPress libs; exit 1)