I am trying to add Travis CI to my Android project to run tests for me. Currently, I'm just trying to use CI to create and clean my project, but it doesn’t work, it seems to freeze after a while and is repeated endlessly in the logs before it eventually crashes. Here is an example log: https://gist.github.com/AdamMc331/6da4433a047815d8e072bf2b7fb81a44
I am completely puzzled by this. I do not know what the problem is. Below is my .travis.yml file:
language: android android: components: - tools - platform-tools - build-tools-25.0.2 - extra-android-m2repository - extra-android-support - android-25 jdk: - oraclejdk8 script: - chmod +x gradlew - ./gradlew clean build --stacktrace --info licenses: - android-sdk-license-.+ notifications: email: false sudo: false cache: directories: - $HOME/.gradle
I tried adding --debug to the gradle task, but that didn't help. After the file hits the line “try to run build tools”, there are no more [DEBUG] instructions.
If someone wants to fork the project and try it for themselves, I use the CC-46 branch: https://github.com/AdamMc331/CashCaretaker/tree/feature/CC-46 If you look in the settings.gradle file you will notice that I use only utility and app-v2 modules.
Here is the log file when I run these commands locally in my terminal: https://gist.github.com/AdamMc331/6d0d0575aa170a760c84ad3244aed1b7
You can see that he also tries to run the build tools there, but he does not try 15 times, and ultimately it will work without errors. The travis construct should do something else.
android travis-ci
Adammc331
source share