forked from wordpress-mobile/WordPress-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.16 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
language: android
jdk: oraclejdk8
sudo: required
rvm: 2.0.0
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-27.0.3
- android-27
env:
global:
- MALLOC_ARENA_MAX=2
- GRADLE_OPTS="-XX:MaxPermSize=4g -Xmx4g"
- ANDROID_SDKS=android-14
- ANDROID_TARGET=android-14
install:
# Setup gradle.properties
- cp gradle.properties-example gradle.properties
- cp libs/login/gradle.properties-example libs/login/gradle.properties
script:
- ./tools/validate-login-strings.sh
- ./gradlew -PdisablePreDex checkstyle ktlint assembleVanillaRelease lintVanillaRelease testVanillaRelease || (grep -A20 -B2 'severity="Error"' -r --include="*.xml" WordPress libs; exit 1)
- bundle install
- bundle exec danger --fail-on-errors=true