rspec-parts 0.1.1 → 0.2.0

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
  SHA1:
3
- metadata.gz: 783ffd233ccc69bd9aba8b23dc20a118576eaefe
4
- data.tar.gz: 79a94a9a640063b1ff4420a4d10dbfc82095b69b
3
+ metadata.gz: 96236589d944fca2df962f896febe1c3b19cfefa
4
+ data.tar.gz: d4c9072dfb218c598998200ba5286842fd304c59
5
5
  SHA512:
6
- metadata.gz: cdfd0b90b4712f4120e5c217d578951b3a0a6fb1384faab4e50c15c0870844e10ce4bf77c2d0e04371b152c3a09e11f9565cc36c429b10ad20567d4d9f7d9131
7
- data.tar.gz: 7f038ba021d04cd52f30e393d37eefdf21dca9661d5197c9b305b9d53b416c09e9085f152bcfecbaa460a8db3b55f98b21c1dc756805fad882651a957b0cda46
6
+ metadata.gz: 2ab8c00246b20dc67332d92c3dcd231a56da0f31a1e6267fdc989e2470ec5cf56598b0e536e53a90fcb547d1d11bac57d5e797cb696168e770ebd9fb14154e2b
7
+ data.tar.gz: 016b1fd9bbaaa6558842e462ee007a4bba7eabc6fed55b0a9ad369f927174a10bbb05e58850878080b33643ababe98a3b29444e9b083d04d794f572d4ddb6be2
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.4
4
+ before_install: gem install bundler -v 1.10.6
5
+ env:
6
+ - RSPEC_PART=1 RSPEC_GROUPS=3
7
+ - RSPEC_PART=2 RSPEC_GROUPS=3
8
+ - RSPEC_PART=3 RSPEC_GROUPS=3
9
+ script: script/ci-travis
data/README.md CHANGED
@@ -9,6 +9,8 @@ This allows you to split your spec suite into multiple, but equal **parts**. We
9
9
 
10
10
  This sped up our Travis Pro builds from running one travis process in **70 minutes** to running four processes in **15 minutes** each.
11
11
 
12
+ See the [blog post][blog-post] about how we went about configuring this gem for Travis.
13
+
12
14
  ## Installation
13
15
 
14
16
  Add this line to your application's Gemfile:
@@ -35,15 +37,17 @@ rake spec:part[1,4]
35
37
 
36
38
  This will divide your specs into four equal parts, then run the first part of the four. `rake spec:part[2,4]` will run the second part, and so on.
37
39
 
38
- ## Configuration
40
+ ## Travis CI set up
39
41
 
40
- In order to properly configure rspec-parts, you must create the file `spec/support/rspec-parts.rb`, and configure as below:
42
+ See the file [.travis.example.yml](https://github.com/hjhart/rspec-parts/blob/master/.travis.example.yml) for an example on how to configure travis to run these builds.
43
+
44
+ ## Configuration
41
45
 
42
- The following are available for configuration:
46
+ This gem should work pretty well with rspec. If you need to configure something, however, you **must** create the file `spec/support/rspec-parts.rb`, and configure as below:
43
47
 
44
48
  Rspec::Parts.configure do |config|
45
- config.file_list_exclusions = ['spec_helper.rb', 'spec/controllers/jasmine_fixture_generation/*.rb']
46
- config.spec_directory_glob = 'test/*'
49
+ config.file_list_exclusions = ['spec/controllers/jasmine_fixture_generation/*.rb']
50
+ config.spec_directory_glob = 'spec/*'
47
51
  config.rspec_opts = '--profile --tag ~nginx --format progress'
48
52
  config.default_number_of_parts = 2
49
53
  end
@@ -63,7 +67,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
63
67
 
64
68
  ## Contributing
65
69
 
66
- Bug reports and pull requests are welcome on GitHub at https://github.com/hjhart/rspec-parts. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
70
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/hjhart/rspec-parts][rspec-parts]. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
67
71
 
68
72
  ## License
69
73
 
@@ -72,3 +76,5 @@ The gem is available as open source under the terms of the [MIT License][mit-lic
72
76
  [mit-license]: http://opensource.org/licenses/MIT
73
77
  [jasmine]: https://github.com/jasmine/jasmine-gem
74
78
  [rspec]: https://github.com/rspec/rspec
79
+ [rspec-parts]: https://github.com/hjhart/rspec-parts
80
+ [blog-post]: http://building.wanelo.com/2015/11/09/fully-utilize-your-travis-pro-resources.html
@@ -1,5 +1,5 @@
1
1
  module Rspec
2
2
  module Parts
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -1,3 +1,4 @@
1
+ require 'rspec/core/rake_task'
1
2
  require 'rspec/parts'
2
3
 
3
4
  if defined?(RSpec)
data/script/ci-travis ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ xvfb-run -e /dev/stdout bundle exec rake spec:part[$RSPEC_PART,$RSPEC_GROUPS]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-parts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hart
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-07 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".rspec"
78
+ - ".travis.example.yml"
78
79
  - ".travis.yml"
79
80
  - CODE_OF_CONDUCT.md
80
81
  - Gemfile
@@ -90,6 +91,7 @@ files:
90
91
  - lib/rspec/parts/version.rb
91
92
  - lib/tasks/rspec_parts.rake
92
93
  - rspec-parts.gemspec
94
+ - script/ci-travis
93
95
  homepage: http://github.com/hjhart/rspec-parts
94
96
  licenses:
95
97
  - MIT