Travis simulator so you do not need to wait for the build


License
MIT
Install
gem install wwtd -v 1.4.1

Documentation

WWTD: Travis simulator Build Status

Reads your .travis.yml and runs what Travis would run (using rvm, rbenv, or chruby). No more waiting for build emails!

Results

Install

gem install wwtd

(bracelets sold separately)

Usage

wwtd                # Run all gemfiles with all Ruby versions
wwtd --local        # Run all gemfiles with current Ruby version => get rid of Appraisal gem!
wwtd --ignore env   # Ignore env settings
wwtd --only-bundle  # Bundle all gemfiles
wwtd --help         # Display help, and learn about other options

Rake

require 'wwtd/tasks'
rake wwtd         # Run all gemfiles with all Ruby versions
rake wwtd:local   # Run all gemfiles with current Ruby version => get rid of Appraisal gem!
rake wwtd:bundle  # Bundle all gemfiles

Tips

  • ./vendor/bundle is created if you have committed a lock file. Add the lock file to .gitignore, or better yet to your global .gitignore.
  • If you do not want --deployment but do want a lock file, add bundler_args: "" to your .travis.yml.

Parallel

  • Might show errors that do not happen in serial builds
  • Runs number-of-processors builds in parallel
  • Runs each configuration in a separate process
  • Sets ENV["TEST_ENV_NUMBER"] (where 1 = "", 2 = "2", etc) so you can do db = "test#{ENV['TEST_ENV_NUMBER']}"
wwtd --parallel  # same result, but number-of-processors faster :)

Contribution

Run tests with:

bundle
bundle exec rake

The tests need different Ruby versions to be installed. If they do not run locally, you can use Vagrant instead:

vagrant up # it will take a while
vagrant ssh
cd /vagrant
bundle exec rake

Authors

Contributors

Michael Grosser
michael@grosser.it
License: MIT