Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #107 from dhollinger/build_tools
Browse files Browse the repository at this point in the history
Add build config and tools
  • Loading branch information
dhollinger authored Mar 8, 2020
2 parents 11ae629 + 25f431b commit 87ced4c
Show file tree
Hide file tree
Showing 175 changed files with 1,531 additions and 117 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ coverage
webhook.lock
vendor/

# Vanagon/Build files
vanagon_hosts.log
ext/
output/

# SQLite Databases
**/*.sqlite
**/*.sqlite3
Expand Down
27 changes: 23 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
AllCops:
TargetRubyVersion: 2.2
TargetRubyVersion: 2.6
Exclude:
- 'vendor/**/*'
- 'db/schema.rb'
- 'db/migrate/**/*'

Metrics/LineLength:
Layout/LineLength:
Max: 140
Exclude:
- build/**/*.rb

Metrics/AbcSize:
Enabled: false
Expand All @@ -20,6 +22,7 @@ Metrics/MethodLength:
Metrics/BlockLength:
Exclude:
- spec/**/*_spec.rb
- build/**/*.rb

Metrics/PerceivedComplexity:
Enabled: false
Expand All @@ -29,7 +32,23 @@ Metrics/ModuleLength:

Style/RegexpLiteral:
EnforcedStyle: percent_r
Enabled: True
Enabled: true

Layout/EmptyLinesAroundArguments:
Enabled: False
Enabled: false

Naming/FileName:
Enabled: false

Lint/UselessAssignment:
Exclude:
- build/**/*.rb

Style/HashEachMethods:
Enabled: false

Style/HashTransformKeys:
Enabled: false

Style/HashTransformValues:
Enabled: false
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ language: ruby
cache: bundler
dist: trusty
before_install:
- bundle -v
- gem install bundler -v 1.17.1
- gem install bundler:2.1.4
- bundle -v
before_script:
- cp ./config/config.yml.example ./config/config.yml
Expand All @@ -20,13 +19,11 @@ after_script:
matrix:
fast_finish: true
include:
- rvm: 2.4.5
env: CHECK=test
- rvm: 2.5.3
- rvm: 2.5.5
env: CHECK=test
- rvm: 2.6.0
- rvm: 2.6.5
env: CHECK=test
- rvm: 2.4.2
- rvm: 2.5.3
env: CHECK=test_and_report_coverage
branches:
only:
Expand Down
52 changes: 30 additions & 22 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,49 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gem 'sinatra'
gem 'sinatra-contrib'
# gem 'sinatra-authentication'
gem 'activerecord', '4.2.11', require: 'active_record'
gem 'bcrypt'
gem 'github_changelog_generator'
gem 'mcollective-client'
gem 'puma'
gem 'puppet_forge', '2.2.8'
gem 'r10k'
gem 'rake'
gem 'require_all'
gem 'rocket-chat-notifier'
gem 'shotgun'
gem 'sidekiq'
gem 'sinatra-activerecord', require: 'sinatra/activerecord'
gem 'slack-notifier'
gem 'sqlite3', '1.3.13'
gem 'thin'
gem 'tux'
gem 'warden'
group :default do
gem 'sinatra'
gem 'sinatra-contrib'
# gem 'sinatra-authentication'
gem 'activerecord', '4.2.11', require: 'active_record'
gem 'bcrypt'
gem 'github_changelog_generator'
gem 'mcollective-client'
gem 'puma'
gem 'puppet_forge', '2.2.8'
gem 'r10k'
gem 'rake'
gem 'rb-readline'
gem 'require_all'
gem 'rocket-chat-notifier'
gem 'shotgun'
gem 'sidekiq', '< 6.0.0'
gem 'sinatra-activerecord', require: 'sinatra/activerecord'
gem 'slack-notifier'
gem 'sqlite3', '1.3.13'
gem 'thin'
gem 'tux'
gem 'warden'
end

group :development do
gem 'debase'
gem 'fustigit'
gem 'pry'
gem 'pry-byebug'
gem 'rack-console'
gem 'rubocop'
gem 'ruby-debug-ide'
gem 'ruby-git'
gem 'vanagon', '0.15.25'
gem 'yard', '>= 0.9.20'
end

group :test do
gem 'capybara'
gem 'coveralls'
gem 'database_cleaner', git: 'https://github.com/bmabey/database_cleaner.git'
gem 'database_cleaner-active_record'
gem 'rack-test'
gem 'rspec'
gem 'simplecov'
Expand Down
Loading

0 comments on commit 87ced4c

Please sign in to comment.