将travis.yml添加到应用程序中检测失败

时间:2019-04-22 18:38:00

标签: android continuous-integration travis-ci continuous-deployment

我想尝试TravisCI,并且想知道是否可以将我的项目链接到TravisCI,我已经读过了: https://docs.travis-ci.com/user/languages/android

但是,如果我创建此*.yml,我如何查看构建是否通过?我还没有创建任何单元测试,集成测试,任何东西,首先,我只想链接它,每次执行一次push或commit时都要进行检查,首先检查构建是否失败,如果没有,则进行commit和push,那可能吗?

这应该是我必须在应用程序中创建的文件吗?

language: android
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
# - tools
# - platform-tools

# The BuildTools version used by your project
- build-tools-26.0.2

# The SDK version used to compile your project
- android-26

# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository

# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-x86-android-26
- sys-img-armeabi-v7a-android-17

0 个答案:

没有答案