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

ruby-changes:66457

From: Jun <ko1@a...>
Date: Thu, 10 Jun 2021 00:17:16 +0900 (JST)
Subject: [ruby-changes:66457] f7741cda32 (master): Enable Travis on the specific branches or forked repositories.

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

From f7741cda323e759432f34c954d7da0ac3d865ab1 Mon Sep 17 00:00:00 2001
From: Jun Aruga <jaruga@r...>
Date: Mon, 7 Jun 2021 17:36:59 +0200
Subject: Enable Travis on the specific branches or forked repositories.

Align the Travis enabling timing with GitHub Actions.

For the syntax, see <https://docs.travis-ci.com/user/conditions-v1>.
We use `repo` syntax rather than `fork = true/false` syntax to show a general usage in any repositories on GitHub.
The non-forked repo is not always a primary repo in any GitHub repositories.

[Bug #17936]
---
 .travis.yml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index f93be45..ff0ce69 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -203,11 +203,8 @@ script: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L203
   - $SETARCH make -s test-spec MSPECOPT=-ff # not using `-j` because sometimes `mspec -j` silently dies
   - $SETARCH make -s -o showflags leaked-globals
 
-# Branch matrix.  Not all branches are Travis-ready so we limit branches here.
-branches:
-  only:
-    - master
-    - /^ruby_\d_\d$/
+# We enable Travis on the specific branches or forked repositories here.
+if: (repo = ruby/ruby AND (branch = master OR branch =~ /^ruby_\d_\d$/)) OR repo != ruby/ruby
 
 # We want to be notified when something happens.
 notifications:
-- 
cgit v1.1


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

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