该分支以前可以正常工作,然后合并到 master 并且 master 上的构建失败。Master 被还原,然后 master 被合并到这个分支中并进行了一些修复。尝试合并回 master 时,构建再次失败并出现以下错误。推送通过,公关失败。
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.squareup.leakcanary:leakcanary-android:1.5.4.
travis.yml 文件:
sudo: false
language: android
android:
components:
- build-tools-27.0.2
- android-27
- sys-img-armeabi-v7a-android-27
jdk:
- oraclejdk8
before_install:
- yes | sdkmanager "platforms;android-27"
- chmod +x gradlew
#First app is built then unit tests are run
jobs:
include:
- stage: build
async: true
script: ./gradlew assemble
- stage: test
async: true
script: ./gradlew -w runUnitTests
notifications:
email:
recipients:
- email@me.com
on_success: always # default: change
on_failure: always # default: always