right_develop 3.1.10 → 3.1.11
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/CHANGELOG.md +12 -6
- data/README.md +24 -25
- data/VERSION +1 -1
- data/right_develop.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a1b5ee8065e071139d0264f52b6437f2f6cfd84
|
4
|
+
data.tar.gz: 756634df8bf97a65ec710891ca693616ab793c2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab44eaf5b40975729c7c483a932f5fb7f4ccefe6a659783a06690b5767867c77813a9325449a0b08e41643bb8480eebfdbc4ef28a1734dc103c318b48a745f0
|
7
|
+
data.tar.gz: d1dcf58d68ee081e707128bcfa646f8ca91a8c60519fe5f51c9c0e645287f2f0cdaad6fac3cf1c55665f8746ef26bb86b95cbaefa9aeaa05573674392349fbe9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
# 1
|
1
|
+
# 3.1
|
2
2
|
|
3
|
-
|
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
|
-
#
|
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
|
-
|
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
|
-
|
22
|
-
|
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
|
-
|
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
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
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
|
-
|
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
|
-
|
78
|
+
require 'right_support'
|
80
79
|
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
if require_succeeds?('right_develop')
|
81
|
+
RightDevelop::CI::RakeTask.new
|
82
|
+
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.11
|
data/right_develop.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: right_support
|