element-android-Github/.buildkite/pipeline.yml

58 lines
2.0 KiB
YAML
Raw Normal View History

2019-04-30 19:58:00 +08: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 17:24:29 +08:00
# We propagate the environment to the container (sse https://github.com/buildkite-plugins/docker-buildkite-plugin#propagate-environment-optional-boolean)
2019-04-30 19:58:00 +08:00
# Build debug version of the RiotX application, from the develop branch and the features branches
steps:
- label: "Assemble GPlay 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 17:24:29 +08:00
- "./gradlew clean lintGplayRelease assembleGplayDebug --stacktrace"
artifact_paths:
- "vector/build/outputs/apk/gplay/debug/*.apk"
branches: "!master"
plugins:
- docker#v3.1.0:
image: "runmymind/docker-android-sdk"
2019-09-18 17:24:29 +08:00
propagate-environment: true
- 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 17:24:29 +08:00
- "./gradlew clean lintFdroidRelease assembleFdroidDebug --stacktrace"
artifact_paths:
- "vector/build/outputs/apk/fdroid/debug/*.apk"
branches: "!master"
plugins:
2019-05-06 16:18:32 +08:00
- docker#v3.1.0:
2019-05-07 20:13:50 +08:00
image: "runmymind/docker-android-sdk"
2019-09-18 17:24:29 +08:00
propagate-environment: true
2019-04-30 19:58:00 +08:00
- label: "Build Google Play unsigned APK"
agents:
# We use a medium sized instance instead of the normal small ones because
# gradle build is long
queue: "medium"
commands:
2019-09-18 17:24:29 +08:00
- "./gradlew clean assembleGplayRelease --stacktrace"
artifact_paths:
- "vector/build/outputs/apk/gplay/release/*.apk"
branches: "master"
plugins:
2019-05-06 16:18:32 +08:00
- docker#v3.1.0:
2019-07-11 22:00:45 +08:00
image: "runmymind/docker-android-sdk"
2019-09-18 17:24:29 +08:00
propagate-environment: true
# Code quality
2019-04-30 19:58:00 +08:00
- label: "Code quality"
command: "./tools/check/check_code_quality.sh"