mirror of
https://github.com/google/googletest.git
synced 2024-12-27 18:31:21 +08:00
set MAKEFLAGS to use multiple processors on Travis CI
This commit is contained in:
parent
7c6353d29a
commit
d96a038e8b
11
travis.sh
11
travis.sh
@ -1,5 +1,16 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -evx
|
set -evx
|
||||||
|
|
||||||
|
# if possible, ask for the precise number of processors,
|
||||||
|
# otherwise take 2 processors as reasonable default; see
|
||||||
|
# https://docs.travis-ci.com/user/speeding-up-the-build/#Makefile-optimization
|
||||||
|
if [ -x /usr/bin/getconf ]; then
|
||||||
|
MAKEFLAGS=j$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
||||||
|
else
|
||||||
|
MAKEFLAGS="j2"
|
||||||
|
fi
|
||||||
|
export MAKEFLAGS
|
||||||
|
|
||||||
env | sort
|
env | sort
|
||||||
|
|
||||||
mkdir build || true
|
mkdir build || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user