Coder Social home page Coder Social logo

cider-ci_getting-started_ruby-on-rails's Introduction

Getting started with Cider-CI for Ruby on Rails Projects

Automatic Parallelized Testing

To get started with automatic testing on Cider-CI:

  1. Have an instance of Cider-CI ready, see the Cider-CI Installation Documentation.
  2. Import the desired project into your instance of Cider-CI.
  3. Copy the provided Cider-CI configuration file cider-ci.yml from this repository to the root of you project.
  4. Commit and push.

You are done! Watch the job "Tests" pass or fail in your instance of Cider-CI.

Static Code Analysis

The provided Cider-CI configuration file also includes a job for static code analytics called Code-Checks. You will need to add the following to your Gemfile to and run bundle make it work:

gem 'cider_ci-support', group: [:development, :test]
gem 'rubocop', require: false, group: [:development, :test]

Advanced Topics and Customization

Database Configuration

The databases PostgreSQL, MySQL, and sqlite3 are supported. The configuration will look for db/database_cider-ci.yml, then db/database.yml for a base database configuration. If neither is found sqlite3 will be used.

Testing Frameworks

Cider-CI supports all of the three common testing frameworks minitest, RSpec and cucumber.

Executor Traits - Rubies, Browsers

An executor with the default traits installed provides a reasonable up to date version of MRI Ruby (default) and JRuby via (rbenv)[https://github.com/sstephenson/rbenv].

For integration tests the browsers Firfox ESR, Google Chrome and the headless Phantomjs are available.

Customization

The provided Cider-CI configuration file works for vanilla rails projects. It is also a basis for customization.

We recommend to have a look at the following two projects for customization examples. The leihs loan system uses a custom strategy for bundling features into Cider-CI tasks. The Madek media archive system performs matrix testing. It combines the Cider-CI task generator with custom properties on a task basis. Madek moreover chains Cider-CI jobs with dependencies to the end of a fully continuous integration implementation including automatic deployments.

cider-ci_getting-started_ruby-on-rails's People

Contributors

drtom avatar

Watchers

 avatar James Cloos avatar  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.