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.
Compiled Docker image can be pulled from: Docker Hub.
Intent of this image is CI testing of Ruby or Rails projects with Drone.
This image has the following MRI rubies installed via chruby:
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.
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: - email@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.
Build is completely skipping over