Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2771)

Unified Diff: scripts/travis-checkout.sh

Issue 1873133003: Add travis CI config (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: More review fixup Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/travis-build.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/travis-checkout.sh
diff --git a/scripts/travis-checkout.sh b/scripts/travis-checkout.sh
new file mode 100755
index 0000000000000000000000000000000000000000..f46e510d1daef748be423d98bcb78e7443bdd4b3
--- /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 "$@"
« no previous file with comments | « scripts/travis-build.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698