I have an android app which shows movies using theMovieDB.org API.
I've done the following for encrypting my theMovieDB.org API_KEY for travic CI:
gem install --user travis
travis encrypt API_KEY = my_api_key --add
So, basically, it creates a secure key and stores it in .travis.yml. But it does not seem to work. I'm getting following error:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
I know I'm getting this error because travis CI couldn't figure out my API_KEY. Because whenever I use my key directly, travis CI passes the build. But unfortunately not with encrypting that KEY with above code. I'm doing everything they've mentioned in the Documentation.
This is my .tavis.yml:
language: android
env:
global:
secure: some_lengthy_secure_key
android:
components:
- platform-tools
- build-tools-25.0.3
- android-25
- extra-android-m2repository
script:
- ./gradlew build
before_install:
- chmod +x gradlew
branches:
only:
- master
This is my Project: https://github.com/Parag2385/PopularMovies-P