How to run a tunnel with Circle CI integration?

Is it possible to run a tunnel with Circle CI integration?

Hi Brett,

Please follow these steps to run a tunnel with Circle CI:

Choose language and version

language: node_js node_js:

  • “8” branches: only:
  • master

Setup custom environment variables

env: global:

  • LT_USERNAME=${LAMBDATEST_USERNAME}
  • LT_ACCESS_KEY=${LAMBDATEST_ACCESS_KEY}

All the step which you want to run in container. script:

Fetching latest code from git

  • git pull origin master

Downloading tunnel binary

Extracting tunnel binary

  • sudo apt-get install unzip
  • unzip LT_Linux.zip

Executing tunnel binary

  • ./LT -user ${LAMBDATEST_EMAIL} -key ${LAMBDATEST_KEY} &
  • sleep 30

Installing dependencies

  • npm install

Running test!

  • node_modules/.bin/nightwatch -e chrome

Once, the tunnel is successfully set up. You can add the below code to your capabilities for testing internal servers on your network.

“desiredCapabilities”: { “tunnel”:true }