代码拉取完成,页面将自动刷新
box: wercker/android
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: show base information
code: |
./gradlew -v
echo $ANDROID_HOME
echo $ANDROID_SDK_VERSION
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
echo $ANDROID_NDK_HOME
- android-sdk-update:
filter: tools,platform-tools
- android-sdk-update:
filter: android-21,android-22,android-23,build-tools-23.0.2,extra-android-support,extra-android-m2repository
# A step that executes `gradle build` command
- script:
name: run gradle
code: |
./gradlew --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR assembleDebug
after-steps:
- script:
name: inspect build result
code: |
ls -la ./samples/build/outputs/apk
cp ./samples/build/outputs/apk/*.apk $WERCKER_REPORT_ARTIFACTS_DIR
rm -f $WERCKER_REPORT_ARTIFACTS_DIR/*-unaligned.apk
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。