Replicate Travis CI builds on your local machine

1 · Parsiad Azimzadeh · Sept. 24, 2022, 8 p.m.
Summary
When submitting a pull request (PR) to a Travis CI enabled project, an error can occur in the build whose cause is not obvious. While it is possible to debug such an error by committing and pushing to trigger a rebuild, this workflow does not fail-fast. A much better approach is to replicate the build environment Travis uses by obtaining the corresponding Docker image. To do so, navigate to the Travis CI Job log. Under Worker information, locate the instance name: Pull the corresponding Docker ...