ruby-changes:46802
From: nobu <ko1@a...>
Date: Sat, 27 May 2017 12:14:09 +0900 (JST)
Subject: [ruby-changes:46802] nobu:r58917 (trunk): .travis.yml: get number of processors at runtime
nobu 2017-05-27 12:14:04 +0900 (Sat, 27 May 2017) New Revision: 58917 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58917 Log: .travis.yml: get number of processors at runtime Modified files: trunk/.travis.yml Index: .travis.yml =================================================================== --- .travis.yml (revision 58916) +++ .travis.yml (revision 58917) @@ -28,9 +28,10 @@ os: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L28 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: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L40 - "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: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L61 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: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/