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 +4 -4
- data/.travis.example.yml +9 -0
- data/README.md +12 -6
- data/lib/rspec/parts/version.rb +1 -1
- data/lib/tasks/rspec_parts.rake +1 -0
- data/script/ci-travis +3 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96236589d944fca2df962f896febe1c3b19cfefa
|
4
|
+
data.tar.gz: d4c9072dfb218c598998200ba5286842fd304c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab8c00246b20dc67332d92c3dcd231a56da0f31a1e6267fdc989e2470ec5cf56598b0e536e53a90fcb547d1d11bac57d5e797cb696168e770ebd9fb14154e2b
|
7
|
+
data.tar.gz: 016b1fd9bbaaa6558842e462ee007a4bba7eabc6fed55b0a9ad369f927174a10bbb05e58850878080b33643ababe98a3b29444e9b083d04d794f572d4ddb6be2
|
data/.travis.example.yml
ADDED
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
|
-
##
|
40
|
+
## Travis CI set up
|
39
41
|
|
40
|
-
|
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
|
-
|
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 = ['
|
46
|
-
config.spec_directory_glob = '
|
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
|
data/lib/rspec/parts/version.rb
CHANGED
data/lib/tasks/rspec_parts.rake
CHANGED
data/script/ci-travis
ADDED
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.
|
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:
|
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
|