travis-checkout.sh 466 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. set -ex
  3. get_depot_tools() {
  4. cd
  5. git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
  6. PATH="$HOME/depot_tools:$PATH"
  7. }
  8. gclient_sync() {
  9. # Rename the source dir to match what gclient expects.
  10. srcdir=$(basename "$TRAVIS_BUILD_DIR")
  11. cd "${TRAVIS_BUILD_DIR}"/..
  12. mv "${srcdir}" src
  13. gclient config --unmanaged https://github.com/google/breakpad.git
  14. gclient sync
  15. }
  16. main() {
  17. get_depot_tools
  18. gclient_sync
  19. }
  20. main "$@"