[前][次][番号順一覧][スレッド一覧]

ruby-changes:59868

From: Benoit <ko1@a...>
Date: Wed, 29 Jan 2020 02:39:53 +0900 (JST)
Subject: [ruby-changes:59868] 6321a68582 (master): Run specs on Ruby 2.7 too to make sure they keep passing

https://git.ruby-lang.org/ruby.git/commit/?id=6321a68582

From 6321a685826f6459a6ef4aeaa18080f07494ee99 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Tue, 28 Jan 2020 18:37:42 +0100
Subject: Run specs on Ruby 2.7 too to make sure they keep passing

* With keyword argument changes, it's more likely to break only 2.7 and
  not other versions.
* A few specs were broken on 2.7.0 recently, this should catch them earlier.

diff --git a/.travis.yml b/.travis.yml
index 882bcb8..6d1d1eb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -362,7 +362,7 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L362
         -Wunused-variable'
       - LDFLAGS=-Wno-unused-command-line-argument
 
-  - &rubyspec
+  - &rubyspec24
     name: Check ruby/spec version guards on Ruby 2.4
     language: ruby
     rvm: 2.4.9
@@ -374,6 +374,18 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L374
     after_failure:
       - echo "ruby/spec failed on Ruby 2.4. 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 .
+    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."
+
   - &baseruby
     name: "BASERUBY: Ruby 2.2"
     <<: *gcc-8
@@ -425,7 +437,8 @@ matrix: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L437
     - <<: *pedanticism
     - <<: *assertions
     - <<: *baseruby
-    - <<: *rubyspec
+    - <<: *rubyspec24
+    - <<: *rubyspec27
     - <<: *dependency
     # Build every commit (Allowed Failures):
     - <<: *ASAN
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]