我是Travis-CI的新手,无法将构建版本发布到S3。这是我的.yml:
language: android
jdk: oraclejdk8
android:
components:
- tools
- tools
- platform-tools
- android-25
- build-tools-25.0.0
- extra
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
licenses:
- 'android.*'
script:
- ./gradlew clean build
deploy:
provider: s3
bucket: "website"
endpoint: "s3-website-us-west-2.amazonaws.com"
region: "us-west-2"
upload-dir: "travis_apk"
skip_cleanup: true
edge: true
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: $S3_SECRET_ACCESS_KEY
local-dir: app/build/outputs/apk
构建成功完成,但Travis日志中没有迹象表明它尝试对部署执行任何操作。它确实在开始时显示它已为访问键设置env变量,但没有关于结果.apk或它尝试连接到S3的任何内容。不确定这里有什么有价值但这是日志的结尾:
:app:packageDebugAndroidTest
:app:assembleDebugAndroidTest
:app:connectedDebugAndroidTest
:app:connectedAndroidTest
:app:connectedCheck
BUILD SUCCESSFUL
Total time: 2 mins 51.075 secs
The command "./gradlew build connectedCheck" exited with 0.
Done. Your build exited with 0.
有什么建议吗?
谢谢!