The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
hoe-travis

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Eric Hodel

Posts: 660
Nickname: drbrain
Registered: Mar, 2006

Eric Hodel is a long-time Rubyist and co-founder of Seattle.rb.
hoe-travis Posted: Mar 1, 2012 6:13 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Eric Hodel.
Original Post: hoe-travis
Feed Title: Segment7
Feed URL: http://blog.segment7.net/articles.rss
Feed Description: Posts about and around Ruby, MetaRuby, ruby2c, ZenTest and work at The Robot Co-op.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Eric Hodel
Latest Posts From Segment7

Advertisement

hoe-travis is a Hoe plugin that allows your gem to gain maximum benefit from travis-ci.org. The plugin contains a .travis.yml generator and a pre-defined rake task which runs the tests and ensures your manifest file is correct.

With hoe-travis it is easy to add additional checks. Custom checks can be easily verified locally by simply running a rake task instead of committing and pushing a change, waiting for travis to run your tests, then trying a new commit if you didn’t fix the problem.

Features

  • .travis.yml generation task

  • Pre-defined rake tasks which are run by travis-ci

  • Easy to hook up rake tasks for additional travis-ci setup or checks

Getting Started

If you’re not already using Hoe with your project, see: docs.seattlerb.org/hoe/Hoe.pdf

To get started with hoe-travis, first install it:

sudo gem install hoe-travis

Then add hoe-travis as a plugin to your Rakefile:

Hoe.plugin :travis

Then generate a .travis.yml

$ rake travis:generate

This will bring up your EDITOR with your travis.yml for any desired tweaks. Save the file when you’re done, then check in your .travis.yml. For further details of how the configuration is generated see Setup at Hoe::Travis and Configuration at Hoe::Travis.

(If you don’t have the EDITOR environment variable set to your favorite editor, please do so. Note that some editors may need extra flags to wait for files to be edited. For MacVIM, export EDITOR="mvim --remote-wait" will wait for the file to be closed before returning.)

If you would like to make future changes to your .travis.yml you can run:

$ rake travis:edit

Which, like travis:generate, will bring up your EDITOR with your .travis.yml. When you’ve saved the file the changes will be checked by travis-lint before writing back to .travis.yml and give you a chance to correct them.

If you’ve edited your .travis.yml by hand you can run:

$ rake travis:check

to check it.

Testing your travis-ci setup is easy with hoe-travis. You can run:

$ rake travis

to run the same checks travis-ci will. By default this includes running the tests and ensuring the Manifest.txt file is complete. There is also the before script:

$ rake travis:before

Which will run the setup tasks needed for your project.

You can also enable and disable travis-ci using rake travis:enable and rake travis:disable. See Setup at Hoe::Travis for details.

Read: hoe-travis

Topic: When to Break Apart your Application Previous Topic   Next Topic Topic: Rails View Annotator

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use