You can run Travis-CI locally in the travis-ci.yml image to test the travis-ci.yml configuration file.
See " How to run TravisCI locally on Docker : you can open travis bash with
docker run -it -u travis quay.io/travisci/travis-jvm /bin/bash
In this article, we will tell you that a local instance of Travis is available for your GitHub repository, but in your case you can make an image of dockers (based on one of Travis-CI ), which will mount the local repo folder on your computer and be able to make travis compile in this mounted folder in the container.
If the test passes in your local Travis-CI, you can redirect your local commits to the GitHub repository.
source share