Abdelouahab
Abdelouahab

Reputation: 7549

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.

Upvotes: 13

Views: 4427

Answers (1)

reto
reto

Reputation: 10463

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

Upvotes: 16

Related Questions