Chromium Code Reviews| 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 |