1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Split commands

* .travis.yml (before_script): split commands to prepare variables
  for pull request URLs to rubyspec, to stop when each commands
  failed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-04-08 07:29:54 +00:00
parent 51eaaa898b
commit 2c0b9e8748

View file

@ -47,12 +47,11 @@ before_script:
- "make after-update BASERUBY=ruby UNICODE_FILES=." - "make after-update BASERUBY=ruby UNICODE_FILES=."
- "make -s $JOBS" - "make -s $JOBS"
- "make update-rubyspec" - "make update-rubyspec"
- "if [ -n \"${RUBYSPEC_PULL_REQUEST}\" ]\n - "requests="
then\n - "for req in ${RUBYSPEC_PULL_REQUEST//,/ }; do
merge=\n requests=\"$requests +refs/pull/$req/merge:\";
for rev in ${RUBYSPEC_PULL_REQUEST//,/ }; do merge=\"$merge +refs/pull/$rev/merge:\"; done\n done"
git -C spec/rubyspec -c user.email=none -c user.name=none pull --no-edit origin $merge\n - "${requests:+git -C spec/rubyspec -c user.email=none -c user.name=none pull --no-edit origin $requests}"
fi"
script: script:
- "make -s test TESTOPTS=--color=never" - "make -s test TESTOPTS=--color=never"