2019-04-30 14:58:00 +03:00
# Use Docker file from https://hub.docker.com/r/runmymind/docker-android-sdk
# Last docker plugin version can be found here:
# https://github.com/buildkite-plugins/docker-buildkite-plugin/releases
2019-09-18 12:24:29 +03:00
# We propagate the environment to the container (sse https://github.com/buildkite-plugins/docker-buildkite-plugin#propagate-environment-optional-boolean)
2019-04-30 14:58:00 +03:00
# Build debug version of the RiotX application, from the develop branch and the features branches
steps :
2019-07-02 11:41:18 +03:00
- label : "Assemble GPlay Debug version"
2019-05-06 11:13:29 +03:00
agents :
# We use a medium sized instance instead of the normal small ones because
# gradle build is long
queue : "medium"
commands :
2019-09-18 12:24:29 +03:00
- "./gradlew clean lintGplayRelease assembleGplayDebug --stacktrace"
2019-05-06 11:13:29 +03:00
artifact_paths :
- "vector/build/outputs/apk/gplay/debug/*.apk"
2019-07-05 19:02:13 +03:00
branches : "!master"
2019-07-02 11:41:18 +03:00
plugins :
- docker#v3.1.0 :
image : "runmymind/docker-android-sdk"
2019-09-18 12:24:29 +03:00
propagate-environment : true
2019-07-02 11:41:18 +03:00
- label : "Assemble FDroid Debug version"
agents :
# We use a medium sized instance instead of the normal small ones because
# gradle build is long
queue : "medium"
commands :
2019-09-18 12:24:29 +03:00
- "./gradlew clean lintFdroidRelease assembleFdroidDebug --stacktrace"
2019-07-02 11:41:18 +03:00
artifact_paths :
2019-05-06 11:13:29 +03:00
- "vector/build/outputs/apk/fdroid/debug/*.apk"
2019-07-05 19:02:13 +03:00
branches : "!master"
2019-05-06 11:13:29 +03:00
plugins :
2019-05-06 11:18:32 +03:00
- docker#v3.1.0 :
2019-05-07 15:13:50 +03:00
image : "runmymind/docker-android-sdk"
2019-09-18 12:24:29 +03:00
propagate-environment : true
2019-04-30 14:58:00 +03:00
2019-05-06 11:13:29 +03:00
- label : "Build Google Play unsigned APK"
2019-05-02 17:43:42 +03:00
agents :
# We use a medium sized instance instead of the normal small ones because
# gradle build is long
queue : "medium"
commands :
2019-09-18 12:24:29 +03:00
- "./gradlew clean assembleGplayRelease --stacktrace"
2019-05-02 17:43:42 +03:00
artifact_paths :
2019-05-06 11:13:29 +03:00
- "vector/build/outputs/apk/gplay/release/*.apk"
2019-05-02 17:43:42 +03:00
branches : "master"
plugins :
2019-05-06 11:18:32 +03:00
- docker#v3.1.0 :
2019-07-11 17:00:45 +03:00
image : "runmymind/docker-android-sdk"
2019-09-18 12:24:29 +03:00
propagate-environment : true
2019-05-02 17:43:42 +03:00
2019-05-06 11:13:29 +03:00
# Code quality
2019-04-30 14:58:00 +03:00
2019-05-06 11:13:29 +03:00
- label : "Code quality"
2019-10-09 16:06:02 +03:00
command :
- "./tools/check/check_code_quality.sh"
2019-10-09 16:11:21 +03:00
- label : "ktlint"
command :
2019-10-09 16:06:02 +03:00
- "curl -sSLO https://github.com/pinterest/ktlint/releases/download/0.34.2/ktlint && chmod a+x ktlint"
2019-10-09 17:38:23 +03:00
- "./ktlint --android --experimental -v"
2019-10-09 16:19:07 +03:00
plugins :
- docker#v3.1.0 :
image : "openjdk"