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

Unified Diff: scripts/travis-build.sh

Issue 1873133003: Add travis CI config (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: 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
Index: scripts/travis-build.sh
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh
new file mode 100755
index 0000000000000000000000000000000000000000..6f34d7e6df41786545a523b1c502a7bc5f0861dd
--- /dev/null
+++ b/scripts/travis-build.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -ex
+
vapier 2016/04/11 15:09:17 i would restructure this code a bit up front: se
Ted Mielczarek 2016/04/11 16:30:18 Okay. I'm not a big fan of overly-complex shell sc
+if test -n "$USE_CC"; then
+ export CC=$USE_CC
+fi
+if test -n "$USE_CXX"; then
+ export CXX=$USE_CXX
+fi
+
+# Use -j4 for faster builds. Travis build machines under Docker
vapier 2016/04/11 15:09:17 i've never run into this problem. i do: ncpus=$
Ted Mielczarek 2016/04/11 16:30:18 I tried something very similar: https://github.com
+# have a lot of cores, but resource limits will kill the build
+# if we try to use them all.
+./configure && make -j4 check

Powered by Google App Engine
This is Rietveld 408576698