You can debug a build locally by pulling down a Docker image that is held in the documentation link, Troubleshooting Locally in a Docker Image (https://docs.travis-ci.com/user/common-build-problems/#Troubleshooting-Locally-in-a-Docker-Image). You can find the instructions to install Docker in this link (https://docs.docker.com/install/).
- Pull down the Go Docker image:
docker pull travisci/ci-garnet:packer-1512502276-986baf0
Notice that we run the docker pull command to actually pull down the Docker image
- Start the interactive Docker session:
Notice here that we ran an interactive shell session in detached mode
- Open a login shell in the running container:
docker exec -it travis-debug bash -l
This command starts an interactive shell session with the running Docker container using a Bash shell
- Switch to the Travis user:
su - travis
In...