sauce_overage

Automatically prevent tests from running on overage minutes by tracking remaining time.


License
MIT-feh
Install
gem install sauce_overage -v 1.0.1

Documentation

sauce_overage

Gem Version Build Status Coverage Status

Automatically prevent tests from running on overage minutes by tracking remaining time.

Jenkins CI Integration

export SAUCE_USERNAME="..."
export SAUCE_ACCESS_KEY="..."
# if available minutes are below the limit then the job will fail
export SAUCE_OVERAGE_LIMIT="300" # minutes

sauce_overage
if [ "$?" -ne 0 ]; then
  echo "Jenkins build failed due to lack of sauce minutes"
  exit 1
fi