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

Travis CI and Coveralls integration question #93

Closed
lucamartellucci opened this issue Feb 11, 2016 · 2 comments
Closed

Travis CI and Coveralls integration question #93

lucamartellucci opened this issue Feb 11, 2016 · 2 comments
Labels

Comments

@lucamartellucci
Copy link

Hi,
i've a stupid question about the integration of Coveralls, Travis CI and maven but I can't find any documentation to resolve my problem.

Actually i've a simple java project with a basic .travis.yml file that contains only the information about the JDK to be used.
I would like to add the coveralls integration so I've added the JaCoCo plugin and the coveralls-maven-plugin to my pom.xml.
According to the documentation I've added the following lines to my .travis.yml file:

after_success:

  • mvn jacoco:report coveralls:jacoco

now, the missing part of my configuration is the setup of the coveralls KEY into the the coveralls-maven-plugin. I'm trying to put the coveralls KEY into the ENV GLOBAL section of the .travis.yml file following the guide available here: https://docs.travis-ci.com/user/encryption-keys/

What is the name of the variable to encrypt ?? I've to replace SOMEVAR with the correct var name.

travis encrypt SOMEVAR=yourcoverallsprojectrepositorytoken

Thank you

@trautonen
Copy link
Owner

If you have a public repository in GitHub and also use free version (for public repositories) of Travis CI and Coveralls, everything is automatically wired for you. You just need to configure your Coveralls account for the source repository and trigger a Travis build with this plugin enabled. Like you already have there in after_success.

Coveralls has built in support for Travis CI and this plugin detects Travis CI from some magic environment variables and sets all the required information for Coveralls.

@lucamartellucci
Copy link
Author

Thank you for your reply! It worked like a charm! This plugin is super cool!! :-)

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

No branches or pull requests

2 participants