Project

General

Profile

Actions

Misc #17936

closed

Run Travis at push on forked repository

Added by jaruga (Jun Aruga) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Assignee:
-
[ruby-core:104164]

Description

I want to change the current condition to run Travis to improve developer's experience.

In my understanding, currently on ruby/ruby, Travis is executed at pull-request and push timing to only master or ruby_N_N branches by the branches syntax part in .travis.yml.

I think it's convenient if the developers can run Travis on their forked branches at the push timing without changing .travis.yml. It's like GitHub Actions. As a note, if the branches syntax part is removed in .travis.yml, it is possible to run Travis at the push timing on the forked repository even now. But it's not convenient.

For example, here are the actual cases where the PR is used by developers just to check the Travis CI result.

I am asking how to do this in the Travis community now. Maybe we need to use the if syntax on the top level.

Conditional builds with 1 “Travis CI - Pull-Request” in pull-request and push from any branches?
https://travis-ci.community/t/11673

Just removing the branches syntax part in .travis.yml is not enough. Because the 2 Travis builds are executed at the pull-request on the condition. You can see the picture on above Travis ticket as a reference.

Actions #2

Updated by jaruga (Jun Aruga) almost 3 years ago

  • Status changed from Open to Closed

Applied in changeset git|f7741cda323e759432f34c954d7da0ac3d865ab1.


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]

Updated by jaruga (Jun Aruga) almost 3 years ago

I sent the PR here.
https://github.com/ruby/ruby/pull/4556

The PR was merged. I expect that now you can run Travis on any branches on your forked repo without changing .travis.yml as well as GitHub Actions.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0