Created
May 12, 2017 09:46
-
-
Save baz8080/dcf8bd01b84bf98282955fe2a05ae763 to your computer and use it in GitHub Desktop.
Travis before script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# Starting emulators is very costly. We should only start them if we're building a matrix | |
# component which requires one. We start the travis_create_avd.sh in the background because | |
# we can get a small performance improvement by continuing the build, and only blocking and | |
# waiting for the emulator when we absolutely need it. | |
if [ "$COMPONENT" == "instrumentation-provider" ] || [ "$COMPONENT" == "instrumentation-sdk" ]; then | |
echo "Starting AVD for component $COMPONENT" | |
./scripts/travis_create_avd.sh & | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment