Skip to content
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

Merged
merged 2 commits into from
Aug 24, 2017
Merged

Add DroneCI support #215

merged 2 commits into from
Aug 24, 2017

Conversation

teohm
Copy link
Contributor

@teohm teohm commented Aug 24, 2017

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/

@CLAassistant
Copy link

CLAassistant commented Aug 24, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@dblandin dblandin left a 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"}
Copy link
Contributor

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.
@teohm
Copy link
Contributor Author

teohm commented Aug 24, 2017

@dblandin Done, I've moved it to the end of the list. 👀

Copy link
Contributor

@dblandin dblandin left a 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. 👌

@teohm
Copy link
Contributor Author

teohm commented Aug 24, 2017

Awesome! @dblandin thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants