-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DroneCI support #215
Add DroneCI support #215
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just one small issue to address and I think this PR will be good to merge.
env/ci.go
Outdated
@@ -27,8 +27,8 @@ func loadCIInfo() ci { | |||
} | |||
} | |||
|
|||
var ciNameVars = []string{"CI_NAME", "APPVEYOR", "BUILDKITE", "CIRCLECI", "GITLAB_CI", "JENKINS_URL", "SEMAPHORE", "TDDIUM", "TRAVIS", "WERCKER"} | |||
var ciNameVars = []string{"CI_NAME", "CI", "APPVEYOR", "BUILDKITE", "CIRCLECI", "GITLAB_CI", "JENKINS_URL", "SEMAPHORE", "TDDIUM", "TRAVIS", "WERCKER"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the CI
environment variable is set to true
in other CI environments, like travis. Could we move this to the end of the list so that other, more specific environment variable names are attempted first?
`CI` env var is set to `true` in CI environments like travis, so it should be placed at the end of the list.
@dblandin Done, I've moved it to the end of the list. 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Will get this out tomorrow. 👌
Awesome! @dblandin thanks! |
Ref: codeclimate/ruby-test-reporter#193 (comment)
We're using self-hosted open-sourced DroneCI. We filed a support ticket recently on missing DroneCI support (see details in codeclimate/ruby-test-reporter#193).
This PR updates test-reporter to support DroneCI-specific environment variables.
DroneCI environment variables: http://docs.drone.io/environment-reference/