Skip to content

Instantly share code, notes, and snippets.

@adsteel
Last active February 17, 2020 15:15
Show Gist options
  • Save adsteel/9477fe6dbb81b94b335a to your computer and use it in GitHub Desktop.
Save adsteel/9477fe6dbb81b94b335a to your computer and use it in GitHub Desktop.
Remote SSH into Circle CI

SSH into your CircleCI tests, run them locally in a browser

  1. Use these instructions as a supplement to the CircleCI instructions https://circleci.com/docs/ssh-build

  2. Get dependencies

$ brew install caskroom/cask/brew-cask
$ brew cask install chicken
  1. In your terminal (replace addresses and ports with info in CircleCI docs)
$ ssh -p 64692 [email protected] -L 5902:localhost:5901
ubuntu@box559:~$ vnc4server -geometry 1280x1024 -depth 24
  1. Connect via VNC
  • Open VNC GUI (e.g. Chicken)
  • Choose port 5902
  • Connect
  1. In your VNC terminal
$ export DISPLAY=:1.0
$ cd app_name/
$ bundle exec cucumber

Note:

To stop a test, add a binding.pry and repush.

@michelleXIE2014
Copy link

very useful and it is working for me :)

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