brijeshshah13 / OpenCI

OpenCI, the ultimate Travis CI client for Android
GNU General Public License v3.0
25 stars 15 forks source link

feat: Travis CI script #11

Closed harshvardhan-takawale closed 6 years ago

harshvardhan-takawale commented 6 years ago

Changes: I have created the script. Please let me know if there are some errors, and I was not very sure what to add in the script section, please tell me if something needs to be added.

Fixes #10

brijeshshah13 commented 6 years ago

@harshvardhan-takawale You need to add the remaining licenses and change the script section according to this file, specify system images as shown in the last part of the overview section for API levels 16 and 26 and use env section to declare global variables ANDROID_BUILD_TOOLS_VERSION=26.0.2 ANDROID_API_LEVEL=26 and use them in components as this script. And please follow the commit style.

brijeshshah13 commented 6 years ago

@harshvardhan-takawale As you can notice, the Travis CI build is failing because it doesn't have the permission to run the ./gradlew command. Hence you need to add the following lines to give the necessary access:

before_install:
 - chmod +x gradlew
brijeshshah13 commented 6 years ago

@harshvardhan-takawale Please check the build log and try to fix the following warning:

Warning: retrofit2.Platform$Java8: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

I tried to fix it by adding a -dontwarn and -keep flags for that class but it isn't working out. See if you can find a solution to suppress that warning.

harshvardhan-takawale commented 6 years ago

@brijeshshah13 I am not able to get it done.