right_develop 3.1.10 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -6
  3. data/README.md +24 -25
  4. data/VERSION +1 -1
  5. data/right_develop.gemspec +3 -3
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca1ee47286ed9116bc3e025b1596019d85b1b59c
4
- data.tar.gz: 524daf75dc03226c0fa94d0c265dc494f24e7ac2
3
+ metadata.gz: 8a1b5ee8065e071139d0264f52b6437f2f6cfd84
4
+ data.tar.gz: 756634df8bf97a65ec710891ca693616ab793c2f
5
5
  SHA512:
6
- metadata.gz: 2264a0ad0de1f8cef1de281cca8d9ab688c3d2d14006d5a4225decb2cf7fd346cb67226832abee3933f43b65b9a5f157b5a121159d90591223a40b2ed05463a3
7
- data.tar.gz: c00c17b93fb059d26181ebc335f25fcbecee4e8c7f0d0e7e6542a179b05a47ced720c0973e7ec9d8dc56ad1bf6a0e1801128b74b2afdfadcdcc07a70069251cc
6
+ metadata.gz: 9ab44eaf5b40975729c7c483a932f5fb7f4ccefe6a659783a06690b5767867c77813a9325449a0b08e41643bb8480eebfdbc4ef28a1734dc103c318b48a745f0
7
+ data.tar.gz: d1dcf58d68ee081e707128bcfa646f8ca91a8c60519fe5f51c9c0e645287f2f0cdaad6fac3cf1c55665f8746ef26bb86b95cbaefa9aeaa05573674392349fbe9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
- # 1.0
1
+ # 3.1
2
2
 
3
- Initial release calved from RightSupport.
3
+ Made CI RSpec/Cucumber integration optional; the Rake task will adapt to whichever gems are present
4
+ in the bundle.
5
+
6
+ # 3.0
7
+
8
+ Reformatted CI harnesss substantially, changing class names and definitions for better modularity
9
+ and compatibility across RSpec v1-3. Rake task interface is compatible with RightDevelop v2;
10
+ there should be no problems upgrading from v2 unless you were relying on RightDevelop internals.
4
11
 
5
12
  # 2.0
6
13
 
@@ -10,8 +17,7 @@ local class definitions. Some developer-specific git behavior remains.
10
17
  Other than removing the Git functionality, no interface-breaking changes have occurred; there
11
18
  should be no problems upgrading from v1 unless you were relying on the Git module.
12
19
 
13
- # 3.0
20
+ # 1.0
21
+
22
+ Initial release calved from RightSupport.
14
23
 
15
- Reformatted CI harnesss substantially, changing class names and definitions for better modularity
16
- and compatibility across RSpec v1-3. Rake task interface is compatible with RightDevelop v2;
17
- there should be no problems upgrading from v2 unless you were relying on RightDevelop internals.
data/README.md CHANGED
@@ -13,13 +13,12 @@ Maintained by the RightScale Engineering Team.
13
13
 
14
14
  ## Continuous Integration
15
15
 
16
- Jenkins groks JUnit XML test results very well, and has lots of hidden features associated with them. Tests are tests,
17
- so we've written an RSpec formatter that Jenkins will feel right at home with!
16
+ RightScale uses a mixture of CI applications and testing frameworks; we value consistent behavior and output formatting between environments. To help promote consistency, we've written a CI harness.
18
17
 
19
18
  To use our CI harness, just add the following to your Rakefile (or into lib/tasks/ci.rake):
20
19
 
21
- require 'right_develop'
22
- RightDevelop::CI::RakeTask.new
20
+ require 'right_develop'
21
+ RightDevelop::CI::RakeTask.new
23
22
 
24
23
  ### Integrating CI with Rails
25
24
 
@@ -30,16 +29,16 @@ task, ensuring that the DB is prepared before running tests.
30
29
  RightDevelop has a similar hook; the ci:prep task is executed before running any ci:* task. If you need to perform
31
30
  app-specific CI setup, you can hook into it like this:
32
31
 
33
- task 'ci:prep' => ['db:my_special_setup_task']
32
+ task 'ci:prep' => ['db:my_special_setup_task']
34
33
 
35
34
  Unfortunately, db:test:prepare does some things that aren't so useful in the CI environment, such as verifying
36
35
  that the development DB exists and is fully migrated. The development DB is irrelevant when running tests, and if someone
37
36
  has failed to commit changes to schema.rb then we _want_ the tests to break. Therefore, to setup a Rails app properly,
38
37
  use the following dependency:
39
38
 
40
- # Make sure we run the Rails DB-setup stuff before any CI run. Avoid using db:test:prepare
41
- # because it also checks for pending migrations in the dev database, which is not useful to us.
42
- task 'ci:prep' => ['db:test:purge', 'db:test:load', 'db:schema:load']
39
+ # Make sure we run the Rails DB-setup stuff before any CI run. Avoid using db:test:prepare
40
+ # because it also checks for pending migrations in the dev database, which is not useful to us.
41
+ task 'ci:prep' => ['db:test:purge', 'db:test:load', 'db:schema:load']
43
42
 
44
43
 
45
44
  ### Customizing your CI Harness
@@ -47,15 +46,15 @@ use the following dependency:
47
46
  You can override various aspects of the CI harness' behavior by passing a block to the constructor which
48
47
  tweaks various instance variables of the resulting Rake task:
49
48
 
50
- RightDevelop::CI::RakeTask.new do |task|
51
- task.ci_namespace = :my_happy_ci
52
- task.rspec_name = :important # run as my_happy_ci:important
53
- task.rspec_desc = "important specs with CI output" # or use cucumber_{name,desc} for Cucumber
54
- task.rspec_pattern = "spec/important/**/*_spec.rb" # only run the important specs for CI
55
- task.rspec_opts = ["-t", "important"] # alternatively, only run tasks tagged as important
56
- task.output_path = "ci_results" # use ci_results as the base dir for all output files
57
- task.rspec_output = "happy_specs.xml" # write to ci_results/rspec/happy_specs.xml
58
- end
49
+ RightDevelop::CI::RakeTask.new do |task|
50
+ task.ci_namespace = :my_happy_ci
51
+ task.rspec_name = :important # run as my_happy_ci:important
52
+ task.rspec_desc = "important specs with CI output" # or use cucumber_{name,desc} for Cucumber
53
+ task.rspec_pattern = "spec/important/**/*_spec.rb" # only run the important specs for CI
54
+ task.rspec_opts = ["-t", "important"] # alternatively, only run tasks tagged as important
55
+ task.output_path = "ci_results" # use ci_results as the base dir for all output files
56
+ task.rspec_output = "happy_specs.xml" # write to ci_results/rspec/happy_specs.xml
57
+ end
59
58
 
60
59
  ### Keeping the CI Harness Out of Production
61
60
 
@@ -65,19 +64,19 @@ due to potential bugs in test code.
65
64
 
66
65
  To prevent RightDevelop from shipping to production, simply put it in the "development" group of your Gemfile:
67
66
 
68
- group :development do
69
- gem 'right_develop'
70
- end
67
+ group :development do
68
+ gem 'right_develop'
69
+ end
71
70
 
72
71
  And ensure that you deploy your code using Bundler's --without flag:
73
72
 
74
- bundle install --deployment --without development
73
+ bundle install --deployment --without=development
75
74
 
76
75
  And finally, modify your Rakefile so you can tolerate the absence of the RightDevelop rake classes. For this,
77
76
  you can use RightSupport's Kernel#require_succeeds? extension to conditionally instantiate the Rake tasks:
78
77
 
79
- require 'right_support'
78
+ require 'right_support'
80
79
 
81
- if require_succeeds?('right_develop')
82
- RightDevelop::CI::RakeTask.new
83
- end
80
+ if require_succeeds?('right_develop')
81
+ RightDevelop::CI::RakeTask.new
82
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.10
1
+ 3.1.11
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: right_develop 3.1.10 ruby lib
5
+ # stub: right_develop 3.1.11 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "right_develop"
9
- s.version = "3.1.10"
9
+ s.version = "3.1.11"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Tony Spataro"]
14
- s.date = "2014-12-10"
14
+ s.date = "2014-12-29"
15
15
  s.description = "A toolkit of development tools created by RightScale."
16
16
  s.email = "support@rightscale.com"
17
17
  s.executables = ["right_develop"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_develop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.10
4
+ version: 3.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Spataro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: right_support