misshie / bioruby-ucsc-api

Ruby UCSC API: An API for the UCSC Genome Database
MIT License
19 stars 7 forks source link

travis-ci support for ucsc-api #3

Closed pjotrp closed 12 years ago

pjotrp commented 12 years ago

Hi,

Since this is an important biogem, please add bio-ucsc to travis-ci. Simply copy the .travis.yml file to the tree, and register the project with Travis, using your github acount. The next push will run the test system.

misshie commented 12 years ago

Hi,

Thank you for your oping an issue. I have no used travis-ci. But I will try to use it. A possible problem is that test execution (rspec) of Ruby UCSC API is very heavy because it requires actual connection to UCSC's MySQL server.

pjotrp commented 12 years ago

You can run limited tests by specifying a 'rake test:travis-ci', or something, in the .travis.yml file. We should have testing, even if it is only to test dependencies. To prevent using mysql, just plug in some fake data using a stub.

At the moment travis-ci is not responding properly. Test it when other jobs are coming in the queue.

misshie commented 12 years ago

Now Travis-CI is supported using minimum test (rspec/travis-ci_spec.rb). The test is run on MRI v1.9.3, v1.9.2, and v1.8.7. So far JRuby is not tested on Travis-CI because it does not supports C extension used in the MySQL library. I confirmed that JRuby works locally (RVM environment).