Public | Automated Build

Last pushed: a year ago
Short Description
Drone CI ruby image for MRI 1.9.3, 2.0.0, 2.1.4, 2.1.5, 2.1.6, 2.2.2 and 2.2.4 we use at Juicymo
Full Description

Juicymo Drone CI Ruby image

We use this image on a daily basis at Juicymo for Continuous Integration of Ruby on Rails apps we make for our clients.

Installation

Compiled Docker image can be pulled from: Docker Hub.

About

This is a Ruby image for Drone based on the juicymo/drone-base, inspired by wingrunr21/drone-ruby.

Intent of this image is CI testing of Ruby or Rails projects with Drone.

This image has the following MRI rubies installed via chruby:

  • 1.9.3-p551
  • 2.0.0-p645
  • 2.1.4
  • 2.1.5
  • 2.1.6
  • 2.2.2

All rubies have bundler installed.

If you need more ruby versions, let us know via GitHub issues or feel free to fork this Docker image or build a new one based on this one.

Usage

Just add similar .drone.yml to you project (example is compatible with Drone 0.4.0):

build:
  image: juicymo/drone-ruby
  bash:
    script:
      - mkdir -p /drone/bundle
      - RUBY=`cat .ruby-version`
      - chruby "$RUBY"
      - bundle install --path /drone/bundle --without "development production"
      - bundle exec rake db:test:prepare
      - bundle exec rspec
      - bundle exec cucumber
cache:
  mount:
    - /drone/bundle
notify:
  email:
    from: $$SMTP_FROM
    host: $$SMTP_HOST
    username: $$SMTP_USER
    password: $$SMTP_PASS
    recipients:
      - john.doe@example.com
    when:
      success: false
      failure: false
      change: true

At Juicymo, we use GitLab which is connected to our Drone CI server. With this setup Drone is able to detect all projects from GitLab automatically. After particular Ruby on Rails project is enabled for testing in Drone, all you need to do is to add, commit and push a .drone.yml to the git repository. Drone will automatically load it and start the integration.

See source at GitHub.

Docker Pull Command
Owner
juicymo
Source Repository

Comments (1)
balancedcomp
2 years ago

Build is completely skipping over bash: script: