Created
June 10, 2020 18:09
-
-
Save psych0der/e364c224ba002b7655e01b71fac10f21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build: | |
# The primary container is an instance of the first image listed. The job's commands run in this container. | |
docker: | |
- image: circleci/node | |
name: main | |
#- image: lambdatest/tunnel | |
#command: ['-user', 'xxxxxxxxx' , '-key', 'xxxxx', '-v'] | |
steps: | |
- checkout | |
- run: | |
name: "Downloading tunnel binary" | |
command: | | |
wget https://downloads.lambdatest.com/tunnel/linux/64bit/LT_Linux.zip | |
- run: | |
name: "Extracting tunnel binary" | |
command: | | |
sudo apt-get install unzip | |
unzip LT_Linux.zip | |
- run: | |
name: "Executing tunnel binary" | |
background: true | |
command: | | |
./LT -user mayankb -key K0EUgcHw3JGxD64ClakAVod5iV1Z3byfhfC7m1ktjbvTDszl0h -infoAPIPort 46001 | |
- run: | |
name: "Wait for tunnel" | |
command: "curl -s --retry-connrefused --connect-timeout 5 --max-time 5 --retry 1040 --retry-delay 2 --retry-max-time 80 http://127.0.0.1:46001/api/v1.0/info 2>&1 > /dev/null" | |
- run: | |
name: list files | |
command: ls -l | |
- run: | |
name: Setup localfile server | |
command: npm install http-server | |
- run: | |
name: Start local file server | |
command: ./node_modules/http-server/bin/http-server | |
- run: | |
name: Running the tunnel for 10 minutes | |
command: | | |
sleep 600 | |
workflows: | |
version: 2 | |
build_and_test: | |
jobs: | |
- build: | |
filters: | |
branches: | |
only: master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment