codeclimate-test-reporter 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/code_climate/test_reporter/ci.rb +15 -15
- data/lib/code_climate/test_reporter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb324d6eebb28615ce0776cad60a7266e7be6fd3
|
4
|
+
data.tar.gz: 38c163b2ee107a923b418db0251440520cffcf36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8d6b4c9188f126740375b42fad4b99079c350e365f26ff9f102a0816976e8d19ec0b33c0fd6eac7cedc3cb917f79de867537ddc971e592e9a6ece5c72475153
|
7
|
+
data.tar.gz: fba316444f90ac50e835cb078b4fbd4228879aae1ba3a6023f703c7a9caa0022aba04f66f15fda3fdc917c171286a7843db6b5f1b7f415e227dd61798d7a3bd7
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Code Climate - [https://codeclimate.com](https://codeclimate.com)
|
|
12
12
|
This gem requires a user, but not necessarily a paid account, on Code Climate,
|
13
13
|
so if you don't have one the first step is to signup at:
|
14
14
|
[https://codeclimate.com](https://codeclimate.com). Then follow the
|
15
|
-
instructions on our [documentation site](https://docs.codeclimate.com/docs/ruby)
|
15
|
+
instructions on our [documentation site](https://docs.codeclimate.com/docs/test-coverage-ruby).
|
16
16
|
|
17
17
|
Please contact hello@codeclimate.com if you need any assistance setting this up.
|
18
18
|
|
@@ -1,27 +1,26 @@
|
|
1
1
|
module CodeClimate
|
2
2
|
module TestReporter
|
3
3
|
class Ci
|
4
|
-
|
5
4
|
def self.service_data(env = ENV)
|
6
5
|
if env["TRAVIS"]
|
7
6
|
{
|
8
7
|
name: "travis-ci",
|
9
8
|
branch: env["TRAVIS_BRANCH"],
|
10
9
|
build_identifier: env["TRAVIS_JOB_ID"],
|
11
|
-
pull_request: env["TRAVIS_PULL_REQUEST"]
|
10
|
+
pull_request: env["TRAVIS_PULL_REQUEST"],
|
12
11
|
}
|
13
12
|
elsif env["CIRCLECI"]
|
14
13
|
{
|
15
14
|
name: "circleci",
|
16
15
|
build_identifier: env["CIRCLE_BUILD_NUM"],
|
17
16
|
branch: env["CIRCLE_BRANCH"],
|
18
|
-
commit_sha: env["CIRCLE_SHA1"]
|
17
|
+
commit_sha: env["CIRCLE_SHA1"],
|
19
18
|
}
|
20
19
|
elsif env["SEMAPHORE"]
|
21
20
|
{
|
22
21
|
name: "semaphore",
|
23
22
|
branch: env["BRANCH_NAME"],
|
24
|
-
build_identifier: env["SEMAPHORE_BUILD_NUMBER"]
|
23
|
+
build_identifier: env["SEMAPHORE_BUILD_NUMBER"],
|
25
24
|
}
|
26
25
|
elsif env["JENKINS_URL"]
|
27
26
|
{
|
@@ -29,13 +28,13 @@ module CodeClimate
|
|
29
28
|
build_identifier: env["BUILD_NUMBER"],
|
30
29
|
build_url: env["BUILD_URL"],
|
31
30
|
branch: env["GIT_BRANCH"],
|
32
|
-
commit_sha: env["GIT_COMMIT"]
|
31
|
+
commit_sha: env["GIT_COMMIT"],
|
33
32
|
}
|
34
33
|
elsif env["TDDIUM"]
|
35
34
|
{
|
36
35
|
name: "tddium",
|
37
36
|
build_identifier: env["TDDIUM_SESSION_ID"],
|
38
|
-
worker_id: env["TDDIUM_TID"]
|
37
|
+
worker_id: env["TDDIUM_TID"],
|
39
38
|
}
|
40
39
|
elsif env["WERCKER"]
|
41
40
|
{
|
@@ -43,7 +42,7 @@ module CodeClimate
|
|
43
42
|
build_identifier: env["WERCKER_BUILD_ID"],
|
44
43
|
build_url: env["WERCKER_BUILD_URL"],
|
45
44
|
branch: env["WERCKER_GIT_BRANCH"],
|
46
|
-
commit_sha: env["WERCKER_GIT_COMMIT"]
|
45
|
+
commit_sha: env["WERCKER_GIT_COMMIT"],
|
47
46
|
}
|
48
47
|
elsif env["APPVEYOR"]
|
49
48
|
{
|
@@ -52,7 +51,7 @@ module CodeClimate
|
|
52
51
|
build_url: env["APPVEYOR_API_URL"],
|
53
52
|
branch: env["APPVEYOR_REPO_BRANCH"],
|
54
53
|
commit_sha: env["APPVEYOR_REPO_COMMIT"],
|
55
|
-
pull_request: env["APPVEYOR_PULL_REQUEST_NUMBER"]
|
54
|
+
pull_request: env["APPVEYOR_PULL_REQUEST_NUMBER"],
|
56
55
|
}
|
57
56
|
elsif env["CI_NAME"] =~ /DRONE/i
|
58
57
|
{
|
@@ -61,16 +60,18 @@ module CodeClimate
|
|
61
60
|
build_url: env["CI_BUILD_URL"],
|
62
61
|
branch: env["CI_BRANCH"],
|
63
62
|
commit_sha: env["CI_COMMIT"],
|
64
|
-
pull_request: env["CI_PULL_REQUEST"]
|
63
|
+
pull_request: env["CI_PULL_REQUEST"],
|
65
64
|
}
|
66
65
|
elsif env["CI_NAME"] =~ /codeship/i
|
67
66
|
{
|
68
67
|
name: "codeship",
|
69
|
-
build_identifier: env["
|
68
|
+
build_identifier: env["CI_BUILD_ID"],
|
69
|
+
# build URL cannot be reconstructed for Codeship since env does not contain project ID
|
70
70
|
build_url: env["CI_BUILD_URL"],
|
71
71
|
branch: env["CI_BRANCH"],
|
72
72
|
commit_sha: env["CI_COMMIT_ID"],
|
73
|
-
|
73
|
+
# CI timestamp is not quite equivalent to commited at but there's no equivalent in Codeship
|
74
|
+
committed_at: env["CI_TIMESTAMP"],
|
74
75
|
}
|
75
76
|
elsif env["CI_NAME"] =~ /VEXOR/i
|
76
77
|
{
|
@@ -79,7 +80,7 @@ module CodeClimate
|
|
79
80
|
build_url: env["CI_BUILD_URL"],
|
80
81
|
branch: env["CI_BRANCH"],
|
81
82
|
commit_sha: env["CI_BUILD_SHA"],
|
82
|
-
pull_request: env["CI_PULL_REQUEST_ID"]
|
83
|
+
pull_request: env["CI_PULL_REQUEST_ID"],
|
83
84
|
}
|
84
85
|
elsif env["BUILDKITE"]
|
85
86
|
{
|
@@ -87,20 +88,19 @@ module CodeClimate
|
|
87
88
|
build_identifier: env["BUILDKITE_JOB_ID"],
|
88
89
|
build_url: env["BUILDKITE_BUILD_URL"],
|
89
90
|
branch: env["BUILDKITE_BRANCH"],
|
90
|
-
commit_sha: env["BUILDKITE_COMMIT"]
|
91
|
+
commit_sha: env["BUILDKITE_COMMIT"],
|
91
92
|
}
|
92
93
|
elsif env["GITLAB_CI"]
|
93
94
|
{
|
94
95
|
name: "gitlab-ci",
|
95
96
|
build_identifier: env["CI_BUILD_ID"],
|
96
97
|
branch: env["CI_BUILD_REF_NAME"],
|
97
|
-
commit_sha: env["CI_BUILD_REF"]
|
98
|
+
commit_sha: env["CI_BUILD_REF"],
|
98
99
|
}
|
99
100
|
else
|
100
101
|
{}
|
101
102
|
end
|
102
103
|
end
|
103
|
-
|
104
104
|
end
|
105
105
|
end
|
106
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate-test-reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Helmkamp
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: simplecov
|
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
147
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.6.
|
148
|
+
rubygems_version: 2.6.10
|
149
149
|
signing_key:
|
150
150
|
specification_version: 4
|
151
151
|
summary: Uploads Ruby test coverage data to Code Climate.
|