Travis CI: Test and Deploy with Confidence
Travis CI is a distributed CI server that builds, tests and deploys the OpenSource project for free. It is fully integrated with GitHub.
So if you are hosting your code on Github, Travis CI will be a great solution to manage the Continuous Integration lifecycle.
Travis CI uses “.”travis.yml” file to manage tasks;
I will show a demo that how to use Travis CI for the Continuous Integration. But if you need more examples please check the documentation.
Step 1: Create .travis.yml file for docker-compose
- How to use Travis CI to run docker-compose?
Step 2: Push newly added file to the Github
#git add .
#git commit -m "TravisCI added"
#git push origin master
Step 3: Create Account on Travis CI with your Github account
You should enable test and deployment for the project that you hosted on Github under the settings tab.
After then build and test steps will be started automatically by Travis CI.
That’s all! Now when you push your code to the Github, Travis CI will automatically test and build your code by .travis.yml file.
Latest posts by Abdurrahim (see all)
- How to handleContinuous Integration lifecycle with Travis ci and Github - June 14, 2019
- Red Hat Enterprise Linux 8 New Features - May 24, 2019
- SSL Certificate Purpose flag “Any Purpose” - April 1, 2019