Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TravisCI integration #36

Merged
merged 17 commits into from
May 18, 2018
12 changes: 8 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ AllCops:
- 'db/seeds.rb'
- '.bundle/**/*'
- 'vendor/**/*'
- 'spec/dummy/**/*'

################ Disable cops ############################
Documentation:
Enabled: false

Style/MultilineOperationIndentation:
Layout/MultilineOperationIndentation:
Enabled: false

Style/CommandLiteral:
Expand All @@ -32,13 +33,16 @@ Style/FrozenStringLiteralComment:
Style/Lambda:
Enabled: false

Style/ExpandPathArguments:
Enabled: false

Rails/Delegate:
Enabled: false

Rails/OutputSafety:
Enabled: false

Style/FileName:
Naming/FileName:
Enabled: false

################ Enable cops #############################
Expand Down Expand Up @@ -76,10 +80,10 @@ Style/PercentLiteralDelimiters:
'%W': '[]'
'%x': '()'

Style/EmptyLinesAroundClassBody:
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines

Style/VariableNumber:
Naming/VariableNumber:
EnforcedStyle: 'snake_case'

Metrics/LineLength:
Expand Down
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: ruby
cache: bundler
sudo: required
dist: trusty
rvm:
- 2.3.7
- 2.4.4
- 2.5.1
env:
global:
- QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
addons:
apt:
sources:
- ubuntu-sdk-team
packages:
- libqt5webkit5-dev
- qtdeclarative5-dev
before_install:
- gem update --system
script:
- bundle exec rubocop && xvfb-run bundle exec rspec spec
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source 'https://rubygems.org'
# Bundler will treat runtime dependencies like base dependencies, and
# development dependencies will be added by default to the :development group.
gemspec
gem 'puma'

# Declare any dependencies that are still in development here instead of in
# your gemspec. These might include edge Rails or gems from your path or
Expand Down
2 changes: 1 addition & 1 deletion rosetta.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Gem::Specification.new do |s|
s.files = Dir['{app,config,db,lib}/**/*', 'MIT-LICENSE', 'Rakefile', 'README.md']

s.add_dependency 'rails'

s.add_dependency 'request_store'

# Development/Test dependencies
Expand All @@ -25,5 +24,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'pry-rails'
s.add_development_dependency 'rspec-its'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'rubocop'
s.add_development_dependency 'sqlite3'
end
2 changes: 2 additions & 0 deletions spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Bundler.require(*Rails.groups)

require 'rosetta'

module Dummy
class Application < Rails::Application

Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require File.expand_path('../dummy/config/environment', __FILE__)
require 'rspec/rails'
require 'rspec/its'
require 'capybara/rspec'
require 'capybara/webkit'

Capybara.javascript_driver = :webkit

Expand Down
3 changes: 1 addition & 2 deletions spec/visual_i18n/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@
end
end

module Rosetta
; module Repositories; class FooBar; end end end
module Rosetta; module Repositories; class FooBar; end end end