Giter Site home page Giter Site logo

accrete-rb's Introduction

Accrete

Build Status Code Climate Test Coverage Scrutinizer Code Quality Inline docs Documentation Status

General

Star system generator based on Sagan / Rand corp

See http://www.rand.org/pubs/papers/P4226.html for original paper by Stephen H. Dole

Local Development Setup

Prerequisites

  • ruby
    • rvm install via \curl -L https://get.rvm.io | bash
    • install ruby via rvm install _theRecommendedRuby_ (see recommendation in .ruby-version.dev)

Manual Environment Setup

Execute in terminal:

$ ln -s .ruby-gemset.dev .ruby-gemset
$ ln -s .ruby-version.dev .ruby-version
$ cd .
$ gem install bundler
$ bundle install

Automatic Environment Setup

execute rake rvm:dev_env:setup and follow instructions

Executing tests

rspec

Execute

$ bundle exec rake

coverage reports

set environment variable COVERAGE to html, e.g.

$ COVERAGE=html bundle exec rake

Coverage report is then in coverage subfolder: open coverage/index.html (on OS X)

Possible values are html for html report or rcov for rcov compatible xml report (interesting for continuos integration).

Executing Linting

  • For linting rubocop (https://github.com/bbatsov/rubocop) is used. Simply execute

    $ bundle exec rubocop
    

    to list offenses.

  • For continuous integration purposes the checkstyle formatter can be used:

    $ bundle exec rubocop --require rubocop/formatter/checkstyle_formatter --format RuboCop::Formatter::CheckstyleFormatter --no-color --out checkstyle
    

    This produces a checkstyle xml file which can be used by e.g. a jenkins checkstyle plugin (e.g. https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin)

Local development via guard

Execute bundle exec guard during local development. If required automatic refresh of coverage reports can be also set by setting the COVERAGE environment variable as described above.

accrete-rb's People

Contributors

monolar avatar

Stargazers

 avatar

Watchers

 avatar

accrete-rb's Issues

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.