forked from wordpress-mobile/WordPress-Android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (56 loc) · 1.73 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
63
64
65
language: android
jdk: oraclejdk8
sudo: required
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# disable the default submodule logic so the gutenberg-mobile submodule is not pulled. No need to pull it.
git:
submodules: false
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"
matrix:
include:
- name: "Lint"
env: GRADLE_TASKS="checkstyle ktlint lintVanillaRelease"
- name: "Build & Test"
env: GRADLE_TASKS="assembleVanillaRelease testVanillaRelease"
- name: "Danger & Check Login Strings"
env: GRADLE_TASKS=""
language: ruby
rvm: 2.3.4
cache:
directories:
- vendor/bundle/
install:
- bundle install
script:
- bundle exec danger --fail-on-errors=true
install:
# Setup gradle.properties
- cp gradle.properties-example gradle.properties
- cp libs/login/gradle.properties-example libs/login/gradle.properties
script:
- ./gradlew --stacktrace -PdisablePreDex $GRADLE_TASKS || (grep -A20 -B2 'severity="Error"' -r --include="*.xml" WordPress libs; exit 1)