dusty-phillips / gitifyhg

Tools for using git as a client to mercurial repositories
GNU General Public License v3.0
62 stars 17 forks source link

Add .travis.yml configuration #28

Closed fingolfin closed 11 years ago

fingolfin commented 11 years ago

This adds a configuration file for Travis CI, as discussed on #20. To make sure the tests actually pass, first pull request #27 should be merged.

For an example output, see https://travis-ci.org/fingolfin/gitifyhg/builds/4452561

Note that travis normally ships git 1.7.9.5. I vaguely recall that Felipe made some fast-export fixes at the time he submitted his remote-hg for git.git/contrib, which were meant to address issues that affect remote helpers. So it might be a good idea to require git 1.8.0 (which introduced them).

But in any case, the travis setup should likely also test against multiple git versions. For this, setting up a PPA with all desired git versions in it might be the best way to go.

fingolfin commented 11 years ago

Note: The travis build failure message is due to this branch not containing the mq fix from #20, i.e. the failure is caused by an actual test failure due to a bug in gitifyhg, not a problem with this pull request.

dusty-phillips commented 11 years ago

Thanks for setting this up!

fingolfin commented 11 years ago

To make this actually work, you'll have to do a little bit extra work to set things up on travis, once. Details on http://about.travis-ci.org/docs/user/getting-started/ but the short summary is:

  1. Login at https://travis-ci.org/ (you can simply use your github account for that)
  2. Once logged in, you'll be on your profile page, with a list of all your repos. Locate gitifyhg and change the switch for it to ON

That should be all. On the next change to this repo, travis should perform a build.

dusty-phillips commented 11 years ago

I have done that, let's see what happens! :)