Sha256: f0af7b0e89dfaa7d23784ad0ce1b30aa9c6630cf9305d81238f4607fd624edb9

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

# TravisParallelSentinel

Simple parallel build coordination for Travis.

Until https://github.com/travis-ci/travis-ci/issues/929 is resolved, you can use this to coordinate your builds. Install
the gem, and you can do the following in your build scripts:

    if [ "$(travis_parallel_sentinel script)" = "deploy" ]; then
      :
      # do your deploy work here
    fi

The bundled script will return no output for anything but the primary build; for the primary build, it will error out if any
of the other builds have, and will return `deploy` if all went well. This is meant to run *as part of your tests*, as
that will cause your build to error out if the deploy fails.

If you want to have the standard Travis behavior, that is, have builds go green even if the deploy step fails, run the
above in your after\_X step, but do `$(travis_parallel_sentinel after)` to include the primary build status in
the success assessment.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'travis_parallel_sentinel'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install travis_parallel_sentinel

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
travis_parallel_sentinel-0.1.14 README.md
travis_parallel_sentinel-0.1.13 README.md
travis_parallel_sentinel-0.1.12 README.md
travis_parallel_sentinel-0.1.11 README.md
travis_parallel_sentinel-0.1.10 README.md
travis_parallel_sentinel-0.1.9 README.md
travis_parallel_sentinel-0.1.8 README.md
travis_parallel_sentinel-0.1.7 README.md
travis_parallel_sentinel-0.1.6 README.md