rails-quality-assurance 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 894820a8924813bc76eba699c5cff69e4820d7d98391340bada0301aa527240c
4
- data.tar.gz: d08502b77795fa44690fef80e6628d3e71a3f322297503c1aaf1a69e29d488cd
3
+ metadata.gz: 6fd8b4e24827c02402a79389c7d5145bfdaaf45f4cd2741120338abce8f33768
4
+ data.tar.gz: 3d34a7b3c87250ca1414dbf16c17a1434413ce1b2dbebf1943f55f5a2c34a077
5
5
  SHA512:
6
- metadata.gz: 9e83e83ac6ac78e3d1a814d0fca27878b3078c5cd0f79e444b09686eea2a73d437e3da81073372c1527a7d060246cd912fc80b166a6f9ffc5ec965a48da916d9
7
- data.tar.gz: acc1c561e78b2bb48879c4f0bbbbe3c1e15b0b6a105b4d2e00f63cf6c87a6dd804956b79e99c575a7bae42329bea096de1a7255014fc6dd9548dd5a51c49c69e
6
+ metadata.gz: 18c9bc787b10fca54d6f221e44b8c5b9cd7b6f4b62d0e868470f3d1fba5833e7b1dcbee933d823a32db94a35a0c11d12b7b74096ac16ec80f759ac73d21eed6b
7
+ data.tar.gz: a625ad921d56d63990a4daa1628c2b4bb64d940c533a8a157eb034db93fc8c5e40d0fb11e8d43c7cb6751e93b2ed0139a7f68f5c3c00ccc1d16b68452608e9d7
@@ -2,7 +2,9 @@
2
2
 
3
3
  # Run using bin/ci
4
4
  CI.run do
5
- step 'Setup', 'bin/setup --skip-server'
5
+ # CI provisions its own services and the parallel spec tasks build the test
6
+ # databases, so bin/setup (db:prepare + seeds) runs only for local runs.
7
+ step 'Setup', 'bin/setup --skip-server' unless ENV['CI']
6
8
 
7
9
  step 'Style: Ruby', 'bundle exec rubocop'
8
10
  step 'Style: Reek', 'bin/rails qa:reek'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsQualityAssurance
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.2'
5
5
  end
@@ -85,8 +85,11 @@ namespace :spec do
85
85
 
86
86
  options = "--isolate --single spec/system/ --isolate-n #{isolate_tasks}"
87
87
  options << " --test-options=\"#{test_options}\"" if test_options
88
- Rake::Task['parallel:create'].invoke(parallel_tasks)
89
- Rake::Task['parallel:load_schema'].invoke(parallel_tasks)
90
- Rake::Task['parallel:spec'].invoke(parallel_tasks, nil, nil, options)
88
+
89
+ # Each phase runs in its own rake process: parallel_tests shells out to `$0`
90
+ # to load a schema per worker, which only works when `$0` is a rake runner.
91
+ sh "bundle exec rake parallel:create[#{parallel_tasks}]"
92
+ sh "bundle exec rake parallel:load_schema[#{parallel_tasks}]"
93
+ sh "bundle exec parallel_rspec spec/ -n #{parallel_tasks} #{options}"
91
94
  end
92
95
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-quality-assurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Zaffari