mercredi 28 mars 2018

Travis pr failed, push passed

The branch was previously functional, then merged to master and the builds on master failed. Master was reverted, then master was merged into this branch and some fixes were made. When attempting to merge back to master, the build failed again with the following error. The push passed, the pr failed.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.squareup.leakcanary:leakcanary-android:1.5.4.

The travis.yml file:

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 

Aucun commentaire:

Enregistrer un commentaire