Git Product home page Git Product logo

wwtd's Introduction

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
[email protected]
License: MIT

wwtd's People

Contributors

ccutrer avatar edsinclair avatar grosser avatar jonathanhefner avatar jonnangle avatar krisleech avatar lukkry avatar pboling avatar shekibobo avatar stereobooster avatar zilkey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.