Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test a forked Github project by Travis?

If I fork a project, and make changes on it, how can I let Travis build the project?

I forked it, it will wait until I make a pull request to give me the build status, but I should test it independently to make the pull request? Because the icon (build|passing) follows the initial project, and not the forked one.

like image 267
Abdelouahab Avatar asked Oct 13 '14 15:10

Abdelouahab


People also ask

How do I test a Travis project on GitHub?

back to a community that connects so many people. Login with GitHub, tell Travis CI to test a project, and then push to GitHub. Could it be any simpler! Many databases and services are pre-installed and can be enabled in your build configuration.

How do I test a Travis CI Project?

Login with GitHub, tell Travis CI to test a project, and then push to GitHub. Could it be any simpler! Many databases and services are pre-installed and can be enabled in your build configuration. Make sure every Pull Request to your project is tested before it's merged.

How do I Fork a project on GitHub?

On GitHub, navigate to the octocat/Spoon-Knife repository. In the top-right corner of the page, click Fork . You might fork a project to propose changes to the upstream, or original, repository. In this case, it's good practice to regularly sync your fork with the upstream repository. To do this, you'll need to use Git on the command line.

What are forks used for in Git?

Most commonly, forks are used to either propose changes to someone else's project or to use someone else's project as a starting point for your own idea. You can fork a repository to create a copy of the repository and make changes without affecting the upstream repository. For more information, see " Working with forks."


1 Answers

You go to travis-ci.org, log in (using your github account) and then follow the following simple guide:

Enable your projects below by flicking the switch, add a .travis.yml to your project, and push a new commit to GitHub.

This will lead to your own travis build, independent of the original project and you won't have to wait for any pull requests to be merged.

You'll find the specifications for your .travis.yml on docs.travis-ci.com if you want to do further changes, since you forked a project that already contains one you're all set for now.

Once this is all setup you can adapt the URL in the readme.md file to point to your travis build

like image 61
reto Avatar answered Oct 14 '22 01:10

reto