Commit d96a038e authored by Herbert Thielen's avatar Herbert Thielen
Browse files

set MAKEFLAGS to use multiple processors on Travis CI

parent 7c6353d2
#!/usr/bin/env sh
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
mkdir build || true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment