2019-04-30 13:58:00 +02: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
|
|
|
|
|
|
|
|
# Build debug version of the RiotX application, from the develop branch and the features branches
|
|
|
|
|
|
|
|
steps:
|
2019-05-06 10:13:29 +02:00
|
|
|
- label: "Assemble Debug version"
|
|
|
|
agents:
|
|
|
|
# We use a medium sized instance instead of the normal small ones because
|
|
|
|
# gradle build is long
|
|
|
|
queue: "medium"
|
|
|
|
commands:
|
|
|
|
- "./gradlew clean lintGplayRelease assembleGplayDebug --stacktrace"
|
|
|
|
- "./gradlew lintFdroidRelease assembleFdroidDebug --stacktrace"
|
|
|
|
artifact_paths:
|
|
|
|
- "vector/build/outputs/apk/gplay/debug/*.apk"
|
|
|
|
- "vector/build/outputs/apk/fdroid/debug/*.apk"
|
|
|
|
branches: "develop feature/*"
|
|
|
|
plugins:
|
2019-05-06 10:18:32 +02:00
|
|
|
- docker#v3.1.0:
|
2019-05-07 14:13:50 +02:00
|
|
|
image: "runmymind/docker-android-sdk"
|
2019-04-30 13:58:00 +02:00
|
|
|
|
2019-05-06 10:13:29 +02:00
|
|
|
- label: "Build Google Play unsigned APK"
|
2019-05-02 16:43:42 +02:00
|
|
|
agents:
|
|
|
|
# We use a medium sized instance instead of the normal small ones because
|
|
|
|
# gradle build is long
|
|
|
|
queue: "medium"
|
|
|
|
commands:
|
2019-05-06 10:13:29 +02:00
|
|
|
- "./gradlew clean assembleGplayRelease --stacktrace"
|
2019-05-02 16:43:42 +02:00
|
|
|
artifact_paths:
|
2019-05-06 10:13:29 +02:00
|
|
|
- "vector/build/outputs/apk/gplay/release/*.apk"
|
2019-05-02 16:43:42 +02:00
|
|
|
branches: "master"
|
|
|
|
plugins:
|
2019-05-06 10:18:32 +02:00
|
|
|
- docker#v3.1.0:
|
|
|
|
image: "runmymind/docker-android-sdk"
|
2019-05-02 16:43:42 +02:00
|
|
|
|
2019-05-06 10:13:29 +02:00
|
|
|
# Code quality
|
2019-04-30 13:58:00 +02:00
|
|
|
|
2019-05-06 10:13:29 +02:00
|
|
|
- label: "Code quality"
|
|
|
|
command: "./tools/check/check_code_quality.sh"
|