diff options
author | Ted Mielczarek <ted@mielczarek.org> | 2016-04-12 14:55:52 -0400 |
---|---|---|
committer | Ted Mielczarek <ted@mielczarek.org> | 2016-04-12 14:55:52 -0400 |
commit | 0203b0cbddeffff2f408338f10a5f775c0d2f5a7 (patch) | |
tree | e1bf9cd35dbe398a6a5d926f4baf9580731103a2 /scripts/travis-checkout.sh | |
parent | 205b5ac6edd63988309290ac15e69775f3b3f564 (diff) | |
download | google-breakpad-0203b0cbddeffff2f408338f10a5f775c0d2f5a7.tar.gz |
Add travis CI config
This will let us setup travis-ci on the Breakpad GitHub mirror.
R=vapier@chromium.org, mark@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1873133003 .
Diffstat (limited to 'scripts/travis-checkout.sh')
-rwxr-xr-x | scripts/travis-checkout.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/travis-checkout.sh b/scripts/travis-checkout.sh new file mode 100755 index 00000000..f46e510d --- /dev/null +++ b/scripts/travis-checkout.sh @@ -0,0 +1,24 @@ +#!/bin/sh +set -ex + +get_depot_tools() { + cd + git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git + PATH="$HOME/depot_tools:$PATH" +} + +gclient_sync() { + # Rename the source dir to match what gclient expects. + srcdir=$(basename "$TRAVIS_BUILD_DIR") + cd "${TRAVIS_BUILD_DIR}"/.. + mv "${srcdir}" src + gclient config --unmanaged https://github.com/google/breakpad.git + gclient sync +} + +main() { + get_depot_tools + gclient_sync +} + +main "$@" |