Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
d96a038e
Commit
d96a038e
authored
Sep 04, 2017
by
Herbert Thielen
Browse files
set MAKEFLAGS to use multiple processors on Travis CI
parent
7c6353d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
travis.sh
travis.sh
+11
-0
No files found.
travis.sh
View file @
d96a038e
#!/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment