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

Adding TeamCity service #106

Closed
pawanrawal opened this issue Jan 5, 2018 · 2 comments · Fixed by #184
Closed

Adding TeamCity service #106

pawanrawal opened this issue Jan 5, 2018 · 2 comments · Fixed by #184

Comments

@pawanrawal
Copy link

Are there any plans to add https://www.jetbrains.com/teamcity/ to the list of supported services? Or is there any workaround to make it work on TeamCity?

@rogchap
Copy link

rogchap commented Jan 11, 2018

Hey @pawanrawal We have a similar request, but for Buildkite.

I had a look at the code and it's pretty easy to get it to work with another CI Platform. the -service flag is only text that gets passed through to the API and then you just need to override a few Environment Variables to get the PR number, Branch etc.

This is a how we did it for Buildkite, I'm sure Team City would be similar:

# goveralls only support travis CI and Circle CI so we export ENVs for Buildkite instead.
export TRAVIS_JOB_ID=$BUILDKITE_BUILD_NUMBER
export CIRCLE_PR_NUMBER=$BUILDKITE_PULL_REQUEST
export GIT_BRANCH=$BUILDKITE_BRANCH

$GO test -v -covermode=count -coverprofile=coverage.out
$GOPATH/bin/goveralls -coverprofile=coverage.out -service=Buildkite -repotoken $COVERALLS_TOKEN

@mattn
Copy link
Owner

mattn commented Jan 12, 2018

I don't use TeamCity. So if you got succeeded to post, please send me PR to update README. :)

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

Successfully merging a pull request may close this issue.

4 participants