Android build options on travis.ci

I currently have an Android project using gradle and integrated with travis.ci which has different productFlavors and buildTypes. When the "connectedCheck" task is executed on travis.ci, it tries to pack all the assembly options (all combinations of tastes and types). Some of them fail because the release requires a password that I cannot automate at the moment. Is there a way to tell travis.ci to build and test only a specific build option of an Android project?

+4
source share
2 answers

So, how I did it: Run the task connectedAndroidTest<productFlavor><buildType>instead connectedCheck. Also set the build task in the .travis.yml installation section:

install: - TERM=dumb ./gradlew -s assemble<productFlavor><buildType>
0
source

Suppose you want to run a Trial product recipe and a Debug build type.

Instead of starting up ./gradlew assemble connectedCheck, which looks like what you are doing, run this instead:

./gradlew assembleTrialDebug connectedCheckTrialDebug
+4
source

Source: https://habr.com/ru/post/1547169/


All Articles