· It’s very
easy to configure CircleCI to use your maven project.
· Once done whenever
you push anything to repository the CircleCI will automatically build your
project running your test cases to make sure nothing breaks in this build.
Steps
1. Go to below
web site
2. Click on Go to
app.
3. Click on Add
Projects
4. Click on “Set
up Project” button next to your github project.
5. Choose Linux
, Maven (Java) and copy .yml file contents.
6. In your
project at root , create a file like .circleci/config.yml and past the previously copied content to this
file.
7. Now
commit and push your project to gihub so that CircleCI can read the current
changes.
8. Go back to
your CircleCIà Add Projectsà Your project
page and press start Building. CircleCI will now build your maven project and
if everything goes ok it will show you success message.
9. If not it
will send you an error email message.
10.
You can also view the complete error stack trace at
CircleCi website.
11.
Now whenever you commit and push any changes to your
github project CircleCI will automatically build your project and if there is
any error it will inform you about it.
12.
You can also add the status badge from CircleCI to
your github reporsitory page , it’s an easy step please google about it.
13.
Once you have CircleCI configured , go to your
commits in github and you will see a green tick against your commits which
basically tells you that the build was successful after this commit. Like below
·