This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
lib/code_climate/test_reporter Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,15 @@ def self.service_data(env = ENV)
45
45
branch : env [ 'WERCKER_GIT_BRANCH' ] ,
46
46
commit_sha : env [ 'WERCKER_GIT_COMMIT' ]
47
47
}
48
+ elsif env [ 'APPVEYOR' ]
49
+ {
50
+ name : "appveyor" ,
51
+ build_identifier : env [ 'APPVEYOR_BUILD_ID' ] ,
52
+ build_url : env [ 'APPVEYOR_API_URL' ] ,
53
+ branch : env [ 'APPVEYOR_REPO_BRANCH' ] ,
54
+ commit_sha : env [ 'APPVEYOR_REPO_COMMIT' ] ,
55
+ pull_request : env [ 'APPVEYOR_PULL_REQUEST_NUMBER' ]
56
+ }
48
57
elsif env [ 'CI_NAME' ] =~ /DRONE/i
49
58
{
50
59
name : "drone" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def clean_git_branch
32
32
private
33
33
34
34
def committed_at
35
- committed_at = `git log -1 --pretty=format:' %ct' `
35
+ committed_at = `git log -1 --pretty=format:%ct`
36
36
committed_at . to_i . zero? ? nil : committed_at . to_i
37
37
end
38
38
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module CodeClimate::TestReporter
6
6
it 'returns a hash with git information.' do
7
7
expected_git_hash = {
8
8
head : `git log -1 --pretty=format:'%H'` ,
9
- committed_at : `git log -1 --pretty=format:' %ct' ` . to_i ,
9
+ committed_at : `git log -1 --pretty=format:%ct` . to_i ,
10
10
branch : Git . send ( :branch_from_git )
11
11
}
12
12
You can’t perform that action at this time.
0 commit comments