tries to speed up build with knapsack
This commit is contained in:
@@ -7,4 +7,5 @@ cache: bundler
|
|||||||
before_script:
|
before_script:
|
||||||
- "for i in config/*.example; do cp \"$i\" \"${i/.example}\"; done"
|
- "for i in config/*.example; do cp \"$i\" \"${i/.example}\"; done"
|
||||||
- bundle exec rake db:setup
|
- bundle exec rake db:setup
|
||||||
script: bundle exec rake
|
script:
|
||||||
|
- "KNAPSACK_GENERATE_REPORT=true bundle exec rspec spec"
|
||||||
1
Gemfile
1
Gemfile
@@ -86,6 +86,7 @@ group :development, :test do
|
|||||||
gem "bullet"
|
gem "bullet"
|
||||||
gem "faker"
|
gem "faker"
|
||||||
gem 'rubocop', '~> 0.45.0', require: false
|
gem 'rubocop', '~> 0.45.0', require: false
|
||||||
|
gem 'knapsack'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
|
|||||||
@@ -215,6 +215,9 @@ GEM
|
|||||||
actionpack (>= 3.0.0)
|
actionpack (>= 3.0.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
kgio (2.10.0)
|
kgio (2.10.0)
|
||||||
|
knapsack (1.13.0)
|
||||||
|
rake
|
||||||
|
timecop (>= 0.1.0)
|
||||||
launchy (2.4.3)
|
launchy (2.4.3)
|
||||||
addressable (~> 2.3)
|
addressable (~> 2.3)
|
||||||
letter_opener (1.4.1)
|
letter_opener (1.4.1)
|
||||||
@@ -405,6 +408,7 @@ GEM
|
|||||||
thread (0.2.2)
|
thread (0.2.2)
|
||||||
thread_safe (0.3.5)
|
thread_safe (0.3.5)
|
||||||
tilt (2.0.5)
|
tilt (2.0.5)
|
||||||
|
timecop (0.8.1)
|
||||||
tins (1.11.0)
|
tins (1.11.0)
|
||||||
tolk (2.0.0)
|
tolk (2.0.0)
|
||||||
rails (>= 4.0)
|
rails (>= 4.0)
|
||||||
@@ -485,6 +489,7 @@ DEPENDENCIES
|
|||||||
jquery-rails (~> 4.2.1)
|
jquery-rails (~> 4.2.1)
|
||||||
jquery-ui-rails
|
jquery-ui-rails
|
||||||
kaminari
|
kaminari
|
||||||
|
knapsack
|
||||||
launchy
|
launchy
|
||||||
letter_opener_web (~> 1.3.0)
|
letter_opener_web (~> 1.3.0)
|
||||||
newrelic_rpm (~> 3.17.0.325)
|
newrelic_rpm (~> 3.17.0.325)
|
||||||
|
|||||||
1
Rakefile
1
Rakefile
@@ -4,3 +4,4 @@
|
|||||||
require File.expand_path('../config/application', __FILE__)
|
require File.expand_path('../config/application', __FILE__)
|
||||||
|
|
||||||
Rails.application.load_tasks
|
Rails.application.load_tasks
|
||||||
|
Knapsack.load_tasks if defined?(Knapsack)
|
||||||
@@ -2,7 +2,9 @@ require 'factory_girl_rails'
|
|||||||
require 'database_cleaner'
|
require 'database_cleaner'
|
||||||
require 'email_spec'
|
require 'email_spec'
|
||||||
require 'devise'
|
require 'devise'
|
||||||
|
require 'knapsack'
|
||||||
Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
|
Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
|
||||||
|
Knapsack::Adapters::RSpecAdapter.bind
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.use_transactional_fixtures = false
|
config.use_transactional_fixtures = false
|
||||||
@@ -101,6 +103,4 @@ RSpec.configure do |config|
|
|||||||
# test failures related to randomization by passing the same `--seed` value
|
# test failures related to randomization by passing the same `--seed` value
|
||||||
# as the one that triggered the failure.
|
# as the one that triggered the failure.
|
||||||
Kernel.srand config.seed
|
Kernel.srand config.seed
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user