Adding Badges to your Repo
This is intended to fill a few holes in Launch’s tutorial on adding badges for your project. I’m taking a bunch of this directly from their tutorial and adding the parts that weren’t explicitly included, but were helpful, especially in getting my Codeship and Coveralls badges to turn green.
Sign into Codeship with GitHub, create a new project, and connect your GitHub repository.
Select “Ruby on Rails” from the drop-down. Make sure to change the ruby version to the version your group is using in development.
Click “Save and go to dashboard”
Now, whenever you issue a pull request, Codeship will build your app, run the tests, and then let you know whether or not the build has passed.
If you would like to learn more about how you can configure Codeship, check out the documentation.
Step 1: Add the gem to your gemfile:
# ./Gemfile group :test do gem 'coveralls', require: false end
Step 2: Add to the top of your spec_helper file:
# ./spec/spec_helper.rb require 'coveralls' Coveralls.wear!('rails')
Step 3: Add to your .gitignore file:
Step 4: Turn on your repo on coveralls.io
Step 5: In your Codeship settings, set your environment config variables (config vars) with your COVERALLS_REPO_TOKEN.
Codeship Dashboard < Project Settings < Environment
Add ```COVERALLS_REPO_TOKEN``` on the KEY side and your token (from the coveralls site) on the VALUE side.
Step 6: Create .coveralls.yml file and add coveralls_repo_token:
repo_token: COVERALLS_REPO_TOKEN
Shoutout to Kelly and Tom for this helpful tip on keeping your coveralls repo token private. :)
Step 7: Add the appropriate badge to your README (exact code for your repo can be found on coveralls.io)
Step 1: Add your GitHub Repository
https://codeclimate.com/github/signup
Step 1: Add this code to .hound.yml in the root of your project directory:
AllCops: Exclude: - db/schema.rb #DisplayCopNames: true AccessorMethodName: Enabled: false ActionFilter: Enabled: false Alias: Enabled: false ArrayJoin: Enabled: false AsciiComments: Enabled: false AsciiIdentifiers: Enabled: false Attr: Enabled: false BlockNesting: Enabled: false CaseEquality: Enabled: false CharacterLiteral: Enabled: false ClassAndModuleChildren: Enabled: false ClassLength: Enabled: false ClassVars: Enabled: false CollectionMethods: PreferredMethods: find: detect reduce: inject collect: map find_all: select ColonMethodCall: Enabled: false CommentAnnotation: Enabled: false CyclomaticComplexity: Enabled: false Delegate: Enabled: false DeprecatedHashMethods: Enabled: false Documentation: Enabled: false DotPosition: EnforcedStyle: trailing DoubleNegation: Enabled: false EachWithObject: Enabled: false EmptyLiteral: Enabled: false Encoding: Enabled: false EvenOdd: Enabled: false FileName: Enabled: false FlipFlop: Enabled: false FormatString: Enabled: false GlobalVars: Enabled: false GuardClause: Enabled: false IfUnlessModifier: Enabled: false IfWithSemicolon: Enabled: false InlineComment: Enabled: false Lambda: Enabled: false LambdaCall: Enabled: false LineEndConcatenation: Enabled: false LineLength: Max: 80 MethodLength: Enabled: false ModuleFunction: Enabled: false NegatedIf: Enabled: false NegatedWhile: Enabled: false Next: Enabled: false NilComparison: Enabled: false Not: Enabled: false NumericLiterals: Enabled: false OneLineConditional: Enabled: false OpMethod: Enabled: false ParameterLists: Enabled: false PercentLiteralDelimiters: Enabled: false PerlBackrefs: Enabled: false PredicateName: NamePrefixBlacklist: - is_ Proc: Enabled: false RaiseArgs: Enabled: false RegexpLiteral: Enabled: false SelfAssignment: Enabled: false SingleLineBlockParams: Enabled: false SingleLineMethods: Enabled: false SignalException: Enabled: false SpecialGlobalVars: Enabled: false StringLiterals: Enabled: false VariableInterpolation: Enabled: false TrailingComma: Enabled: false TrivialAccessors: Enabled: false VariableInterpolation: Enabled: false WhenThen: Enabled: false WhileUntilModifier: Enabled: false WordArray: Enabled: false # Lint AmbiguousOperator: Enabled: false AmbiguousRegexpLiteral: Enabled: false AssignmentInCondition: Enabled: false ConditionPosition: Enabled: false DeprecatedClassMethods: Enabled: false ElseLayout: Enabled: false HandleExceptions: Enabled: false InvalidCharacterLiteral: Enabled: false LiteralInCondition: Enabled: false LiteralInInterpolation: Enabled: false Loop: Enabled: false ParenthesesAsGroupedExpression: Enabled: false RequireParentheses: Enabled: false UnderscorePrefixedVariableName: Enabled: false Void: Enabled: false Style/AlignParameters: EnforcedStyle: with_fixed_indentation Style/SymbolProc: Enabled: false Style/MultilineOperationIndentation: EnforcedStyle: indented Style/EmptyLinesAroundBlockBody: Enabled: false Style/UnneededPercentQ: Enabled: false Metrics/AbcSize: Enabled: false
Step 2: Then, sign in on the website and flip the switch for the GitHub repo that you want to activate.
Make sure to change <YOUR_GITHUB_USERNAME>/<YOUR_REPO_NAME> with the correct info
 [](https://coveralls.io/github/<YOUR_GITHUB_USERNAME>/<YOUR_REPO_NAME>?branch=master)