【发布时间】:2016-04-09 20:02:20
【问题描述】:
我一直在查看Travis CI docs for Android,因此我可以学习如何开始将 Travis 用于我的 Android 库。但是,我不明白文档所说的很多内容......
到目前为止,我的理解是:
language: android # this means the project will be built in an Android environment
android:
components:
- tools # will be built with latest version of Android SDK tools
- platform-tools # ''
- build-tools-23.0.1 # build tools version of my project
- android-23 # Android SDK version of my project
Travis CI 文档还显示了可以使用的其他组件:
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
它提供了更完整的列表here。
但是这些“附加组件”的作用/含义是什么?我猜extra-android-support 组件可能意味着该项目将使用 Android 支持库构建,但其他的呢? ?
我看过Travis tests for Gradle,但我看到其他项目使用script: ./gradlew check、script: ./gradlew clean build check、script: "./gradlew build",有些根本没有使用script。 这一切意味着什么?
【问题讨论】:
标签: android github android-gradle-plugin travis-ci