Skip to content

Instantly share code, notes, and snippets.

@baz8080
Created May 12, 2017 09:46
Show Gist options
  • Save baz8080/dcf8bd01b84bf98282955fe2a05ae763 to your computer and use it in GitHub Desktop.
Save baz8080/dcf8bd01b84bf98282955fe2a05ae763 to your computer and use it in GitHub Desktop.
Travis before script
#!/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