summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-28 19:54:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-29 15:28:39 +0900
commit56d6cfe88ae355a089a164f351dcd7f2112cf852 (patch)
treed73fe84f2e9fdea7b12ae7de278a36c72bee7bb2
parentac0c760843b8bef48d314cacf3f552963391ed16 (diff)
.travis.yml: hoisted out spec-on-old-ruby
-rw-r--r--.travis.yml16
1 files changed, 7 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index 48668c5..c720cb3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -360,27 +360,25 @@ env:
-Wunused-variable'
- LDFLAGS=-Wno-unused-command-line-argument
- - &rubyspec25
- name: Check ruby/spec version guards on Ruby 2.5
+ - &spec-on-old-ruby
language: ruby
- rvm: 2.5.7
before_install:
install:
before_script: chmod -R u+w spec/ruby
# -j randomly hangs.
script: ruby -C spec/ruby ../mspec/bin/mspec .
+
+ - &rubyspec25
+ name: Check ruby/spec version guards on Ruby 2.5
+ rvm: 2.5.7
+ <<: *spec-on-old-ruby
after_failure:
- echo "ruby/spec failed on Ruby 2.5. This is likely because of a missing ruby_version_is guard, please add it. See spec/README.md."
- &rubyspec27
name: Check ruby/spec version guards on Ruby 2.7
- language: ruby
rvm: 2.7.0
- before_install:
- install:
- before_script: chmod -R u+w spec/ruby
- # -j randomly hangs.
- script: ruby -C spec/ruby ../mspec/bin/mspec .
+ <<: *spec-on-old-ruby
after_failure:
- echo "ruby/spec failed on Ruby 2.7. This is likely because of a missing ruby_version_is guard, please add it. See spec/README.md."