Skip to content

Instantly share code, notes, and snippets.

@vr2262
Created December 7, 2015 15:38
Show Gist options
  • Save vr2262/cd208a7c1e6543762a2e to your computer and use it in GitHub Desktop.
Save vr2262/cd208a7c1e6543762a2e to your computer and use it in GitHub Desktop.
Testing the Travis environment locally
  1. Download this script and make it executable: https://gist.github.com/meatballhat/12997137db1a9394f39c

  2. Invoke the script like so:

    $ ./run-travis-docker-image image_name
    

where image_name is one of the travis_<name> images here: https://quay.io/organization/travisci

e.g. ./run-travis-docker-image python 3. The last line of output of will be ssh [email protected] 4. You can now connect to the running container with this ssh command. The password is travis. 5. Look at the logs for one of your Travis test runs to see which commands to run.

@alza-bitz
Copy link

Hi there,

I'm trying to follow these instructions, but with the Travis Docker images I tried (python, ruby, latest versions), the container starts ok but I cannot connect over ssh. I get the following error:

packet_write_wait: Connection to <docker-ip> port 22: Broken pipe

Were you able to successfully connect over ssh for any of the Travis Docker images?

Thanks,

Alex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment