-
Notifications
You must be signed in to change notification settings - Fork 6k
Run the download_android_tools.py in a gclient hook. #3050
Conversation
Originally, this was a step that had to be carried out manually. Presumably because we did not want developers to download the Android SDK and NDK if they were not targetting Android. In practice, this is rarely the case. Even the buildbots unconditionally run the script (though they don’t need Android artifacts on the Mac since there is no Mac to Android builder).
Updated docs to remove the extra setup step. |
A side effect of this change is that Travis now downloads Android tools for the engine job. Not sure it matters. |
ah, maybe that's why it's not in the default set. how long does it take? does this push us close to a travis timeout? |
We can detect travis with environment variables and disable that if needed. |
We don't actually build the Android engine on Travis. So it doesn't affect the results of the job in any way. Travis just has to download stuff it doesn't need. This is not new since most of what gclient does is for building the engine. |
There was a time when travis tried to build the engine. Maybe this is a holdover from then - @abarth would probably remember. |
Can you rig this up so we don't download these binaries on travis? They're huge and there's no benefit to downloading them on travis:
|
I could check for a Travis specific environment variable. That would mean we need to add Travis specific logic to the hooks. Or is there a way to specify to gclient that it should skip certain named hooks? |
Added the check in flutter/buildroot#11. |
Originally, this was a step that had to be carried out manually. Presumably because we did not want developers to download the Android SDK and NDK if they were not targetting Android. In practice, this is rarely the case. Even the buildbots unconditionally run the script (though they don’t need Android artifacts on the Mac since there is no Mac to Android builder).
cc @jamesr @jason-simmons @abarth