codeclimate_circle_ci_coverage 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81448e59e1783df85f0d4d926e0331c5ed14c374
|
4
|
+
data.tar.gz: 5dc6b6a985d705cfdf6461fa137cb498dc586ea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52ce907092bc0cbc877323f819b8ec94fd4e8e8d97fdfde545290c8e59b59e58c4bd5f30dee57d5463498b951dfe9d990923aad3d865d70d14ad4f57710aae55
|
7
|
+
data.tar.gz: 46cb900d9246a256f4ccd1d7858d7d555b435ffb48b1b165fe0b82299b09683b54555fab3f0153df2a588db62991933651d826d6ec17dd1f381bee849ba5bd37
|
@@ -34,11 +34,11 @@ class CoverageReporter
|
|
34
34
|
if current_branch != target_branch
|
35
35
|
puts "Current branch #{current_branch} is not the target branch #{target_branch}"
|
36
36
|
puts "No Coverage will be reported"
|
37
|
-
return
|
37
|
+
return true
|
38
38
|
end
|
39
39
|
|
40
40
|
# Only run on node0
|
41
|
-
return
|
41
|
+
return true unless current_node.zero?
|
42
42
|
|
43
43
|
all_coverage_dir = File.join("all_coverage")
|
44
44
|
download_files(all_coverage_dir)
|
@@ -4,15 +4,15 @@ describe CoverageReporter do
|
|
4
4
|
let(:reporter) { described_class.new("master") }
|
5
5
|
|
6
6
|
describe "#run" do
|
7
|
-
it "returns
|
7
|
+
it "returns true on mismatch branch names" do
|
8
8
|
allow(reporter).to receive(:current_branch).and_return("develop")
|
9
|
-
expect(reporter.run).to
|
9
|
+
expect(reporter.run).to be_truthy
|
10
10
|
end
|
11
11
|
|
12
|
-
it "returns
|
12
|
+
it "returns true on incorrect node number" do
|
13
13
|
allow(reporter).to receive(:current_branch).and_return("master")
|
14
14
|
allow(reporter).to receive(:current_node).and_return(1)
|
15
|
-
expect(reporter.run).to
|
15
|
+
expect(reporter.run).to be_truthy
|
16
16
|
end
|
17
17
|
|
18
18
|
it "returns true when branch and node are correct" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate_circle_ci_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Dunlop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: codeclimate-test-reporter
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.4.
|
132
|
+
rubygems_version: 2.4.8
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: CodeClimate Code Coverage reporting script for CircleCI
|