[ISSUE] Massive Number of Gradle Flavors

I’m facing a real annoying problem: I have over 500 Flavors on my project, each one with at least 10 Mb on their /src files. When I try to build it, it takes an eternity. But I pass through this by commenting all the other flavors on the build.gradle file, and lefting behind the one I want to build. But the problem on that is that, when I use Bitrise, I’m not able to commit those others flavors. It takes over 20 minutes to build the hole project and send it to google play. Other bitrise’s tasks take around 1 second to 3 minutes. How can improve? There is a better option than Bitrise? Where am I going wrong?