diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..78829bf0f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,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-24.0.2 + - android-24 + +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 v24+ + - echo yes | android update sdk -a --filter platform-tools --no-ui --force + +install: + # Setup gradle.properties + - cp WordPress/gradle.properties-example WordPress/gradle.properties + +script: + - ./gradlew -PdisablePreDex assembleVanillaRelease lint || (grep -A20 -B2 'severity="Error"' WordPress/build/outputs/lint-results-vanillaDebug.xml; exit 1) |