Project

wwtd

0.14
No commit activity in last 3 years
No release in over 3 years
Travis simulator so you do not need to wait for the build
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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 --use install  # Use dangerous travis fields like before_install/install/before_script/...
wwtd --parallel 2   # Run in parallel
wwtd --only-bundle  # Bundle all gemfiles
wwtd --help         # Display help, and learn about other options
wwtd --version      # Display version

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

Michael Grosser
michael@grosser.it
License: MIT