aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-27 03:14:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-27 03:14:04 +0000
commit90bac036a4450271b77e27ee112b4ce1c32b82fd (patch)
tree9f05fc0d21df6f395e4b8ebee8553007833f3953 /.travis.yml
parentd2afc39ab4d4556e971d5cab8e84d1c1dc95e6bd (diff)
downloadruby-90bac036a4450271b77e27ee112b4ce1c32b82fd.tar.gz
.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
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 84128026ad..49d85abb76 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -28,9 +28,10 @@ os:
before_install:
- "CONFIG_FLAG="
- - "JOBS='-j 4'"
+ - "JOBS=-j`nproc`"
before_script:
+ - "echo JOBS=$JOBS"
- "uname -a"
- "uname -r"
- "rm -fr .ext autom4te.cache"
@@ -39,7 +40,7 @@ before_script:
- "sed -f tool/prereq.status Makefile.in common.mk > Makefile"
- "make update-config_files"
- "make touch-unicode-files"
- - "make srcs UNICODE_FILES=."
+ - "make -s $JOBS srcs UNICODE_FILES=."
- "make update-rubyspec"
- "requests=; for req in ${RUBYSPEC_PULL_REQUEST//,/ }; do
requests=\"$requests +refs/pull/$req/merge:\";
@@ -60,8 +61,8 @@ before_script:
script:
- "make -s test TESTOPTS=--color=never"
- - "make -s test-all TESTOPTS='-q -j3 --color=never --job-status=normal'"
- - "make -s test-rubyspec MSPECOPT=-fm"
+ - "make -s $JOBS test-all TESTOPTS='-q --color=never --job-status=normal'"
+ - "make -s $JOBS test-rubyspec MSPECOPT=-fm"
# Branch matrix. Not all branches are Travis-ready so we limit branches here.
branches: