2019-03-13 18:02:12 +01:00
|
|
|
# FTR: Configuration on https://travis-ci.org/vector-im/riotX-android/settings
|
2019-03-13 17:00:30 +01:00
|
|
|
#
|
|
|
|
# - Build only if .travis.yml is present -> On
|
|
|
|
# - Limit concurrent jobs -> Off
|
|
|
|
# - Build pushed branches -> On (build the branch)
|
|
|
|
# - Build pushed pull request -> On (build the PR after auto-merge)
|
|
|
|
#
|
|
|
|
# - Auto cancel branch builds -> On
|
|
|
|
# - Auto cancel pull request builds -> On
|
|
|
|
|
|
|
|
language: android
|
|
|
|
jdk: oraclejdk8
|
|
|
|
sudo: false
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|
|
|
|
|
|
|
|
android:
|
|
|
|
components:
|
|
|
|
# Uncomment the lines below if you want to
|
|
|
|
# use the latest revision of Android SDK Tools
|
|
|
|
- tools
|
|
|
|
- platform-tools
|
|
|
|
|
|
|
|
# The BuildTools version used by your project
|
2020-04-15 12:53:28 +02:00
|
|
|
- build-tools-29.0.3
|
2019-03-13 17:00:30 +01:00
|
|
|
|
|
|
|
# The SDK version used to compile your project
|
2020-04-15 12:53:28 +02:00
|
|
|
- android-29
|
2019-03-13 17:00:30 +01:00
|
|
|
|
|
|
|
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/
|
|
|
|
- $HOME/.android/build-cache
|
|
|
|
|
|
|
|
# Build with the development SDK
|
|
|
|
before_script:
|
|
|
|
# Not necessary for the moment
|
|
|
|
# - /bin/sh ./set_debug_env.sh
|
|
|
|
|
|
|
|
# Just build the project for now
|
|
|
|
script:
|
2019-03-19 14:38:15 +01:00
|
|
|
# Build app (assembleGplayRelease assembleFdroidRelease)
|
2019-03-18 15:15:40 +01:00
|
|
|
# Build Android test (assembleAndroidTest) (disabled for now)
|
2019-03-19 14:38:15 +01:00
|
|
|
# Code quality (lintGplayRelease lintFdroidRelease)
|
2019-04-04 11:09:58 +02:00
|
|
|
# Split into two steps because if a task contain Fdroid, PlayService will be disabled
|
2020-03-04 12:23:25 +01:00
|
|
|
# Done by Buildkite now: - ./gradlew clean assembleGplayRelease lintGplayRelease --stacktrace
|
|
|
|
# Done by Buildkite now: - ./gradlew clean assembleFdroidRelease lintFdroidRelease --stacktrace
|
2019-03-13 17:00:30 +01:00
|
|
|
# Run unitary test (Disable for now, see https://travis-ci.org/vector-im/riot-android/builds/502504370)
|
2019-03-19 14:38:15 +01:00
|
|
|
# - ./gradlew testGplayReleaseUnitTest --stacktrace
|
2019-03-13 17:00:30 +01:00
|
|
|
# Other code quality check
|
2020-03-04 12:23:25 +01:00
|
|
|
# Done by Buildkite now: - ./tools/check/check_code_quality.sh
|
2019-03-13 17:00:30 +01:00
|
|
|
- ./tools/travis/check_pr.sh
|
|
|
|
# Check that indonesians file are identical. Due to Android issue, the resource folder must be value-in/, and Weblate export data into value-id/.
|
2020-03-04 12:23:25 +01:00
|
|
|
# Done by Buildkite now: - diff ./vector/src/main/res/values-id/strings.xml ./vector/src/main/res/values-in/strings.xml
|