mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
.travis.yml: get number of processors at runtime
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2e75043a49
commit
944c8f400c
1 changed files with 5 additions and 4 deletions
|
@ -28,9 +28,10 @@ os:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- "CONFIG_FLAG="
|
- "CONFIG_FLAG="
|
||||||
- "JOBS='-j 4'"
|
- "JOBS=-j`nproc`"
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- "echo JOBS=$JOBS"
|
||||||
- "uname -a"
|
- "uname -a"
|
||||||
- "uname -r"
|
- "uname -r"
|
||||||
- "rm -fr .ext autom4te.cache"
|
- "rm -fr .ext autom4te.cache"
|
||||||
|
@ -39,7 +40,7 @@ before_script:
|
||||||
- "sed -f tool/prereq.status Makefile.in common.mk > Makefile"
|
- "sed -f tool/prereq.status Makefile.in common.mk > Makefile"
|
||||||
- "make update-config_files"
|
- "make update-config_files"
|
||||||
- "make touch-unicode-files"
|
- "make touch-unicode-files"
|
||||||
- "make srcs UNICODE_FILES=."
|
- "make -s $JOBS srcs UNICODE_FILES=."
|
||||||
- "make update-rubyspec"
|
- "make update-rubyspec"
|
||||||
- "requests=; for req in ${RUBYSPEC_PULL_REQUEST//,/ }; do
|
- "requests=; for req in ${RUBYSPEC_PULL_REQUEST//,/ }; do
|
||||||
requests=\"$requests +refs/pull/$req/merge:\";
|
requests=\"$requests +refs/pull/$req/merge:\";
|
||||||
|
@ -60,8 +61,8 @@ before_script:
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- "make -s test TESTOPTS=--color=never"
|
- "make -s test TESTOPTS=--color=never"
|
||||||
- "make -s test-all TESTOPTS='-q -j3 --color=never --job-status=normal'"
|
- "make -s $JOBS test-all TESTOPTS='-q --color=never --job-status=normal'"
|
||||||
- "make -s test-rubyspec MSPECOPT=-fm"
|
- "make -s $JOBS test-rubyspec MSPECOPT=-fm"
|
||||||
|
|
||||||
# Branch matrix. Not all branches are Travis-ready so we limit branches here.
|
# Branch matrix. Not all branches are Travis-ready so we limit branches here.
|
||||||
branches:
|
branches:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue