Travis CI - Open source CI/CD Tool | GitHub Integration Example Demo | DevOps CICD | InterviewDOT
Channel: Interview DOT
Date: 16/02/2020

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications.

Tamil Travis CI - Open source CI/CD Tool | GitHub Integration | Example | InterviewDOT

Tamil Travis CI - Open source CI/CD Tool | GitHub Integration | Example | InterviewDOT

Travis CI is a free and open source software for continuous integration. Travis CI was created in Berlin in 2011 and published in August 2013. The software is suitable for testing and creating projects that are published on GitHub.

First things first, we need a project repository on Github. I created one named https://github.com/net-vinothkumar/cicd-travis-demo

And ignore the target/ folder to avoid adding build files into git repo.
You may either create one of your own or clone my repo for convenience.

Spring Boot
It would be easier to go with the official project repo cicd-travis-demo.Yet, the Spring Boot official website provides the tutorial for creating a REST application.
I only copied src/ folder and pom.xml file from cicd-travis-demo repo into my project folder cicd-travis-demo as following.

What is Travis CI?
Travis CI was the first CI as a Service tool. It introduced a new approach to building code in the cloud. This CI tool allows the user to sign up, link their repository, build, as well as test their apps.

Travis CI tool can easily integrate with the common cloud repositories like GitHub and Bitbucket. It offers many automated CI options which cut out the need for a dedicated server as the Travis CI server is hosted in the cloud. This allows you to test in different environments, on various machines, running on different Operating Systems.

Travis CI is free for open source projects. For commercial projects, you need to purchase an enterprise plan.

What does Travis do?
Travis CI offers following benefits:

You can monitor GitHub projects
Runs Test and generate results quickly. Parallel test execution is possible.
Build artifacts & check code quality
Easy Deployment to cloud services
It can identify small as well as large code changes.
Developers can use Travis CI to watch the tests when they are running.
The tool integrates with Slack, HipChat, Email, etc.

Travis CI Features:
Automatic integration with GitHub
Repository access to build pull requests
Support for 21 languages like Android, C, C#, C++, Java, JavaScript (with Node.js), Perl, PHP, Python, R, Ruby, etc
Pre-installed build & test tools
Available services - databases, message queues, etc.
Deployment to multiple cloud services
Encrypt secure environment variables or files
Virtual machines recreated after every build
CLI client and API for scripting
Comes with free cloud-based hosting which does not require maintenance or administration.

travis-ci.org is a free service for public open source projects.
travis-ci.com is a paid service for private commercial projects.